Skip to content

Commit

Permalink
replace proposal with transform plugin for dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Oct 24, 2023
1 parent 4857ef8 commit 47ec6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/esnext-transpiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function LocalTranspiler (inputTree, projectName, _options) {
transformAmdModule,
'@babel/plugin-transform-strict-mode',
'@babel/plugin-transform-classes',
'@babel/plugin-proposal-dynamic-import',
'@babel/plugin-transform-dynamic-import',
'@babel/plugin-transform-async-to-generator',
]
});
Expand All @@ -54,7 +54,7 @@ function VendorTranspiler (inputTree, _options) {
transformAmdModule,
'@babel/plugin-transform-strict-mode',
'@babel/plugin-transform-classes',
'@babel/plugin-proposal-dynamic-import',
'@babel/plugin-transform-dynamic-import',
]
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "lib/dtk-app.js",
"dependencies": {
"@babel/eslint-parser": "^7.5.4",
"@babel/plugin-proposal-dynamic-import": "^7.18.6",
"@babel/plugin-transform-dynamic-import": "^7.18.6",
"@babel/plugin-transform-async-to-generator": "^7.18.6",
"@babel/plugin-transform-classes": "^7.19.0",
"@babel/plugin-transform-modules-amd": "^7.19.6",
Expand Down

0 comments on commit 47ec6d4

Please sign in to comment.