Skip to content

Commit

Permalink
build: update to babel-dual-package.
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney committed Jul 16, 2023
2 parents ce5c2eb + fb4f2a5 commit b44c6e0
Show file tree
Hide file tree
Showing 6 changed files with 585 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node >= 12.17
node >= 12.20
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module: {
use: {
loader: 'magic-comments-loader',
options: {
webpackChunkName: ['src/**/*.js']
webpackChunkName: ['**/src/**/*.js']
}
}
}
Expand Down Expand Up @@ -245,13 +245,13 @@ module: {
},
overrides: [
{
files: ['eager/**/*.js'],
files: ['**/eager/**/*.js'],
options: {
mode: 'eager'
}
},
{
files: ['locales/**/*.json'],
files: ['**/locales/**/*.json'],
options: {
mode: 'lazy-once'
}
Expand Down
8 changes: 1 addition & 7 deletions .babelrc.json → babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@
}]
],
"env": {
"cjs": {
"presets": [
["@babel/preset-env", {
"modules": "commonjs"
}]
]
},
"test": {
"plugins": ["babel-plugin-istanbul"]
}
}
}

15 changes: 0 additions & 15 deletions cjs.js

This file was deleted.

Loading

0 comments on commit b44c6e0

Please sign in to comment.