File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ 2023-05-04] v1.3.3
2+
3+ - 9397f17 v1.3.3
4+ - 16f5d58 chore: cleanup | closes [ #53 ] ( https://github.com/vite-plugin/vite-plugin-dynamic-import/issues/53 )
5+
16## [ 2023-04-30] v1.3.2
27
38- 1b96e39 v1.3.2
Original file line number Diff line number Diff line change 11{
22 "name" : " vite-plugin-dynamic-import" ,
3- "version" : " 1.3.2 " ,
3+ "version" : " 1.3.3 " ,
44 "description" : " Enhance Vite builtin dynamic import" ,
55 "main" : " ./dist/index.js" ,
66 "types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ async function transformDynamicImport({
189189 // https://github.com/vitejs/vite/blob/v4.3.0/packages/vite/src/node/plugins/importAnalysis.ts#L663
190190 if ( viteIgnoreRE . test ( importExpression ) ) continue
191191
192- const ast = parseAst ( importExpression , { ecmaVersion : 2020 } ) as AcornNode
192+ const ast = parseAst ( code , { sourceType : 'module' , ecmaVersion : 2020 } ) as AcornNode
193193 const importExpressionAst = ast . body [ 0 ] . /* ImportExpression */ expression as AcornNode
194194
195195 // maybe `import.meta`
You can’t perform that action at this time.
0 commit comments