@digest/webpack 4.14.15-next.2 → 4.14.16-next.1

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/dist/webpack.config.js +42 -33
  2. package/package.json +13 -13
@@ -2,7 +2,6 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
- var _a, _b;
6
5
  Object.defineProperty(exports, "__esModule", { value: true });
7
6
  const scriptLoaders_1 = __importDefault(require("./scriptLoaders"));
8
7
  const styleLoaders_1 = __importDefault(require("./styleLoaders"));
@@ -108,7 +107,7 @@ const configuration = {
108
107
  [] :
109
108
  [
110
109
  node_path_1.default.join('webpack', 'hot', 'dev-server'),
111
- node_path_1.default.join('webpack-hot-middleware', 'client') + `?path=${node_path_1.default.join(baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/')}hot`
110
+ node_path_1.default.join('webpack-hot-middleware', 'client') + `?path=${node_path_1.default.join(baseHrefHtml ?? '/')}hot`
112
111
  ], !scripts_1.config.library &&
113
112
  scripts_1.config.babel &&
114
113
  babelPolyfills ?
@@ -374,22 +373,28 @@ const configuration = {
374
373
  new case_sensitive_paths_webpack_plugin_1.default(),
375
374
  new webpack_1.DefinePlugin({
376
375
  __DEV__: !scripts_1.production,
377
- 'process.env': Object.assign(Object.assign({ BASE_HREF: scripts_1.config.baseHrefHtml ?
376
+ 'process.env': {
377
+ BASE_HREF: scripts_1.config.baseHrefHtml ?
378
378
  JSON.stringify(scripts_1.config.baseHrefHtml) :
379
- undefined, BUILD: {
379
+ undefined,
380
+ BUILD: {
380
381
  DATE: JSON.stringify(new Date().toString())
381
- }, NODE_ENV: JSON.stringify(scripts_1.production ?
382
+ },
383
+ NODE_ENV: JSON.stringify(scripts_1.production ?
382
384
  'production' :
383
- 'development') }, scripts_1.config.library ?
384
- undefined :
385
- {
386
- PACKAGE: {
387
- DESCRIPTION: JSON.stringify(scripts_1.package.description),
388
- NAME: JSON.stringify(scripts_1.package.name),
389
- TITLE: JSON.stringify(scripts_1.package.title),
390
- VERSION: JSON.stringify(scripts_1.package.version)
391
- }
392
- }), scripts_1.config.env)
385
+ 'development'),
386
+ ...scripts_1.config.library ?
387
+ undefined :
388
+ {
389
+ PACKAGE: {
390
+ DESCRIPTION: JSON.stringify(scripts_1.package.description),
391
+ NAME: JSON.stringify(scripts_1.package.name),
392
+ TITLE: JSON.stringify(scripts_1.package.title),
393
+ VERSION: JSON.stringify(scripts_1.package.version)
394
+ }
395
+ },
396
+ ...scripts_1.config.env
397
+ }
393
398
  })
394
399
  ].concat(scripts_1.config.eslint &&
395
400
  scripts_1.config.webpackESLint ?
@@ -448,7 +453,7 @@ const configuration = {
448
453
  new ForkTsCheckerWebpackPlugin({
449
454
  typescript: {
450
455
  configFile: scripts_1.config.typescript,
451
- memoryLimit: Math.floor(node_v8_1.default.getHeapStatistics().heap_size_limit / 1000000)
456
+ memoryLimit: Math.floor(node_v8_1.default.getHeapStatistics().heap_size_limit / 1_000_000)
452
457
  }
453
458
  })
454
459
  ] :
@@ -456,7 +461,7 @@ const configuration = {
456
461
  [
457
462
  new html_webpack_plugin_1.default({
458
463
  alwaysWriteToDisk: true,
459
- baseHref: baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/',
464
+ baseHref: baseHrefHtml ?? '/',
460
465
  filename: node_path_1.default.join('..', 'index.html'),
461
466
  inject: 'body',
462
467
  minify: scripts_1.production ?
@@ -494,8 +499,8 @@ const configuration = {
494
499
  appDescription: scripts_1.package.description,
495
500
  appName: scripts_1.package.title,
496
501
  background: '#fff',
497
- developerName: (_a = scripts_1.package.author) === null || _a === void 0 ? void 0 : _a.name,
498
- developerURL: (_b = scripts_1.package.author) === null || _b === void 0 ? void 0 : _b.url,
502
+ developerName: scripts_1.package.author?.name,
503
+ developerURL: scripts_1.package.author?.url,
499
504
  display: 'standalone',
500
505
  icons: {
501
506
  android: true,
@@ -511,7 +516,7 @@ const configuration = {
511
516
  orientation: 'portrait',
512
517
  path: node_path_1.default.join('favicons', '/'),
513
518
  src: scripts_1.config.favicon,
514
- start_url: baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/',
519
+ start_url: baseHrefHtml ?? '/',
515
520
  theme_color: '#fff',
516
521
  version: scripts_1.package.version
517
522
  }),
@@ -546,7 +551,7 @@ const configuration = {
546
551
  modifyURLPrefix: {
547
552
  bundle: node_path_1.default.join('.')
548
553
  },
549
- navigateFallback: `${baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/'}index.html`,
554
+ navigateFallback: `${baseHrefHtml ?? '/'}index.html`,
550
555
  navigateFallbackDenylist: [].concat([
551
556
  /\/bundle\//u,
552
557
  /^\/_/u,
@@ -564,12 +569,14 @@ const configuration = {
564
569
  []),
565
570
  profile: true,
566
571
  resolve: {
567
- alias: Object.assign({}, scripts_1.config.react && scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
568
- {
569
- 'react-native$': 'react-native-web',
570
- 'react-native-vector-icons': 'react-native-vector-icons/dist'
571
- } :
572
- {}),
572
+ alias: {
573
+ ...scripts_1.config.react && scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
574
+ {
575
+ 'react-native$': 'react-native-web',
576
+ 'react-native-vector-icons': 'react-native-vector-icons/dist'
577
+ } :
578
+ {}
579
+ },
573
580
  extensions: [
574
581
  ...scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
575
582
  [
@@ -592,12 +599,14 @@ const configuration = {
592
599
  ]
593
600
  },
594
601
  resolveLoader: {
595
- alias: Object.assign({}, scripts_1.config.react && scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
596
- {
597
- 'react-native$': 'react-native-web',
598
- 'react-native-vector-icons': 'react-native-vector-icons/dist'
599
- } :
600
- {}),
602
+ alias: {
603
+ ...scripts_1.config.react && scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
604
+ {
605
+ 'react-native$': 'react-native-web',
606
+ 'react-native-vector-icons': 'react-native-vector-icons/dist'
607
+ } :
608
+ {}
609
+ },
601
610
  modules: [
602
611
  node_path_1.default.join('node_modules'),
603
612
  node_path_1.default.join(process.cwd())
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/webpack",
3
3
  "title": "Webpack Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.14.15-next.2",
5
+ "version": "4.14.16-next.1",
6
6
  "description": "Digested Webpack Configurations",
7
7
  "author": {
8
8
  "name": "wallzero @wallzeroblog",
@@ -48,32 +48,32 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@digest/scripts": "^4.0.0",
51
- "@swc/core": "^1.15.7",
51
+ "@swc/core": "^1.15.21",
52
52
  "@vue/preload-webpack-plugin": "^2.0.0",
53
53
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
54
54
  "circular-dependency-plugin": "^5.2.2",
55
55
  "clean-terminal-webpack-plugin": "^3.0.0",
56
56
  "clean-webpack-plugin": "4.0.0",
57
- "compression-webpack-plugin": "^11.1.0",
58
- "css-loader": "^7.1.2",
59
- "css-minimizer-webpack-plugin": "^7.0.4",
57
+ "compression-webpack-plugin": "^12.0.0",
58
+ "css-loader": "^7.1.4",
59
+ "css-minimizer-webpack-plugin": "^8.0.0",
60
60
  "duplicate-package-checker-webpack-plugin": "^3.0.0",
61
61
  "html-loader": "^5.1.0",
62
62
  "html-webpack-harddisk-plugin": "^2.0.0",
63
63
  "html-webpack-link-type-plugin": "^1.1.1",
64
- "html-webpack-plugin": "^5.6.5",
64
+ "html-webpack-plugin": "^5.6.6",
65
65
  "identity-obj-proxy": "^3.0.0",
66
- "mini-css-extract-plugin": "^2.9.4",
66
+ "mini-css-extract-plugin": "^2.10.1",
67
67
  "raw-loader": "^4.0.2",
68
68
  "source-map-loader": "^5.0.0",
69
69
  "stats-webpack-plugin": "~0.7.0",
70
70
  "style-loader": "^3.3.4",
71
- "terser-webpack-plugin": "^5.3.16",
71
+ "terser-webpack-plugin": "^5.4.0",
72
72
  "thread-loader": "^4.0.4",
73
73
  "url-loader": "^4.1.1",
74
- "webpack": "^5.104.1",
75
- "webpack-bundle-analyzer": "^5.1.0",
76
- "webpack-cli": "^6.0.1",
74
+ "webpack": "^5.105.4",
75
+ "webpack-bundle-analyzer": "^5.3.0",
76
+ "webpack-cli": "^7.0.2",
77
77
  "webpack-favicons": "^1.5.4",
78
78
  "webpack-node-externals": "^3.0.0",
79
79
  "webpack-subresource-integrity": "^5.2.0-rc.1"
@@ -83,7 +83,7 @@
83
83
  "@types/clean-webpack-plugin": "^2.0.2",
84
84
  "@types/ip": "^1.1.3",
85
85
  "@types/mini-css-extract-plugin": "^2.5.1",
86
- "@types/node": "^25.0.3",
86
+ "@types/node": "^25.5.0",
87
87
  "@types/terser-webpack-plugin": "^5.2.0",
88
88
  "@types/webpack-bundle-analyzer": "^4.7.0",
89
89
  "@types/webpack-env": "^1.18.8"
@@ -93,5 +93,5 @@
93
93
  "build",
94
94
  "hmr"
95
95
  ],
96
- "gitHead": "d767757334e2b223f0fa03a8bac8da84c79c91b2"
96
+ "gitHead": "e95c54869f8a73933b1c70540656f5c602884982"
97
97
  }