diff --git a/lib/esnext-transpiler.js b/lib/esnext-transpiler.js index f6d14a5..ab4eeb9 100644 --- a/lib/esnext-transpiler.js +++ b/lib/esnext-transpiler.js @@ -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', ] }); @@ -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', ] }); diff --git a/package.json b/package.json index a03cc5f..9e792a7 100644 --- a/package.json +++ b/package.json @@ -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",