Skip to content

Commit

Permalink
fix: v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed May 4, 2023
1 parent 401e957 commit 3cdf718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -189,7 +189,7 @@ async function transformDynamicImport({
// https://github.com/vitejs/vite/blob/v4.3.0/packages/vite/src/node/plugins/importAnalysis.ts#L663
if (viteIgnoreRE.test(importExpression)) continue

const ast = parseAst(code, { sourceType: 'module', ecmaVersion: 2020 }) as AcornNode
const ast = parseAst(importExpression, { sourceType: 'module', ecmaVersion: 2020 }) as AcornNode
const importExpressionAst = ast.body[0]./* ImportExpression */expression as AcornNode

// maybe `import.meta`
Expand Down

0 comments on commit 3cdf718

Please sign in to comment.