magic-comments-loader 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ module: {
|
|
|
92
92
|
use: {
|
|
93
93
|
loader: 'magic-comments-loader',
|
|
94
94
|
options: {
|
|
95
|
-
webpackChunkName: ['src/**/*.js']
|
|
95
|
+
webpackChunkName: ['**/src/**/*.js']
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -245,13 +245,13 @@ module: {
|
|
|
245
245
|
},
|
|
246
246
|
overrides: [
|
|
247
247
|
{
|
|
248
|
-
files: ['eager/**/*.js'],
|
|
248
|
+
files: ['**/eager/**/*.js'],
|
|
249
249
|
options: {
|
|
250
250
|
mode: 'eager'
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
files: ['locales/**/*.json'],
|
|
254
|
+
files: ['**/locales/**/*.json'],
|
|
255
255
|
options: {
|
|
256
256
|
mode: 'lazy-once'
|
|
257
257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-comments-loader",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Add webpack magic comments to your dynamic imports at build time.",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"type": "module",
|
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prepack": "npm run build",
|
|
27
|
-
"build": "
|
|
28
|
-
"build:esm": "babel src --out-dir dist",
|
|
29
|
-
"build:cjs": "BABEL_ENV=cjs babel src --out-dir dist/cjs --out-file-extension .cjs && node cjs.js",
|
|
27
|
+
"build": "babel-dual-package src --out-dir dist",
|
|
30
28
|
"lint": "eslint . src __tests__ --ext .js,.cjs",
|
|
31
29
|
"lint:fix": "npm run lint -- --fix",
|
|
32
30
|
"test:unit": "node --experimental-vm-modules --no-warnings ./node_modules/.bin/jest",
|
|
@@ -51,6 +49,7 @@
|
|
|
51
49
|
"@babel/core": "^7.22.5",
|
|
52
50
|
"@babel/eslint-parser": "^7.22.5",
|
|
53
51
|
"@babel/preset-env": "^7.22.5",
|
|
52
|
+
"babel-dual-package": "^1.0.0-alpha.1",
|
|
54
53
|
"babel-register-esm": "^1.2.4",
|
|
55
54
|
"codecov": "^4.0.0-0",
|
|
56
55
|
"eslint": "^8.42.0",
|