]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove unnecessary optional check (#5958)
authorJinesh Patel <jinesh.patel@qlik.com>
Mon, 23 May 2022 00:29:15 +0000 (05:59 +0530)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 00:29:15 +0000 (20:29 -0400)
packages/compiler-sfc/src/rewriteDefault.ts

index 53db1798b727c0941979819ce0353e98a99f2fd4..da7c3a042e950eec7c4b520a41412aae1495704a 100644 (file)
@@ -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}`)