diff --git a/packages/compiler-sfc/src/rewriteDefault.ts b/packages/compiler-sfc/src/rewriteDefault.ts index 53db1798..da7c3a04 100644 --- a/packages/compiler-sfc/src/rewriteDefault.ts +++ b/packages/compiler-sfc/src/rewriteDefault.ts @@ -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}`)