From 0cd21ba77cafe0900c43f0b13335694cc2d9f80f Mon Sep 17 00:00:00 2001 From: Jinesh Patel Date: Mon, 23 May 2022 05:59:15 +0530 Subject: [PATCH] chore: remove unnecessary optional check (#5958) --- packages/compiler-sfc/src/rewriteDefault.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`)