diff --git a/babel.config.js b/babel.config.js index eeff0d0..89cd7f4 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,16 +1,9 @@ module.exports = { - plugins: ['babel-plugin-transform-dynamic-import'], + plugins: [ + ['polyfill-corejs3', { method: 'usage-global' }] + ], ignore: ['./src/generators/*/templates/**/*'], presets: [ - [ - '@babel/env', - { - targets: { - node: '10', - }, - corejs: 2, - useBuiltIns: 'usage', - }, - ], - ], + ['@babel/preset-env', { targets: { node: '10' } }] + ] }; diff --git a/package.json b/package.json index 9f7192b..ac3212e 100644 --- a/package.json +++ b/package.json @@ -24,12 +24,10 @@ "prompts": "^2" }, "devDependencies": { - "@babel/cli": "^7", - "@babel/core": "^7", - "@babel/eslint-parser": "7", - "@babel/preset-env": "^7", - "babel-eslint": "^10", - "babel-plugin-transform-dynamic-import": "^2", + "@babel/cli": "^8", + "@babel/core": "^8", + "@babel/preset-env": "^8", + "babel-plugin-polyfill-corejs3": "^1.0.0", "eslint": "^9", "eslint-config-brightspace": "^4", "rimraf": "^6.0.1"