Skip to content

Commit

Permalink
fix: cannot use import equals in script setup
Browse files Browse the repository at this point in the history
close #1223
  • Loading branch information
johnsoncodehk committed Apr 23, 2022
1 parent ebcc1cc commit 726c7f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vue-code-gen/src/parsers/scriptSetupRanges.ts
Expand Up @@ -27,6 +27,8 @@ export function parseScriptSetupRanges(ts: typeof import('typescript/lib/tsserve
&& !ts.isImportDeclaration(node)
&& !isTypeExport
&& !ts.isEmptyStatement(node)
// fix https://github.com/johnsoncodehk/volar/issues/1223
&& !ts.isImportEqualsDeclaration(node)
) {
importSectionEndOffset = node.getStart(ast);
foundNonImportExportNode = true;
Expand Down

0 comments on commit 726c7f5

Please sign in to comment.