Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
module.exports = {
plugins: ['babel-plugin-transform-dynamic-import'],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a super old deprecated plugin and its babel version conflicts. I don't think it's needed anymore. If we think we need this, there is @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' } }]
]
};
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down