Skip to content

Commit

Permalink
chore: remove unnecessary optional check (#5958)
Browse files Browse the repository at this point in the history
  • Loading branch information
jineshjin committed May 23, 2022
1 parent b546282 commit 0cd21ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/rewriteDefault.ts
Expand Up @@ -66,7 +66,7 @@ export function rewriteDefault(
`import { ${input.slice(
specifier.local.start!,
specifier.local.end!
)} } from '${node.source?.value}'\n`
)} } from '${node.source.value}'\n`
)
s.overwrite(specifier.start!, end, ``)
s.append(`\nconst ${as} = ${specifier.local.name}`)
Expand Down

0 comments on commit 0cd21ba

Please sign in to comment.