magic-comments-loader 2.0.0 → 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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +5 -6
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.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",
@@ -13,7 +13,7 @@
13
13
  "./package.json": "./package.json"
14
14
  },
15
15
  "engines": {
16
- "node": ">=12.17.0"
16
+ "node": ">=12.20.0"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -24,9 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "prepack": "npm run build",
27
- "build": "npm run build:esm && npm run build:cjs",
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",
@@ -68,7 +67,7 @@
68
67
  "acorn-jsx": "^5.3.2",
69
68
  "acorn-jsx-walk": "^2.0.0",
70
69
  "acorn-walk": "^8.2.0",
71
- "magic-comments": "^2.1.0",
70
+ "magic-comments": "^2.1.1",
72
71
  "magic-string": "^0.30.0",
73
72
  "micromatch": "^4.0.4",
74
73
  "schema-utils": "^4.1.0"