@digest/webpack 4.1.2 → 4.1.4

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.
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const node_path_1 = __importDefault(require("node:path"));
7
6
  const scripts_1 = require("@digest/scripts");
7
+ const node_path_1 = __importDefault(require("node:path"));
8
8
  const threadLoader = require('./threadLoader');
9
9
  const configuration = require('./webpack.config');
10
10
  const { cache } = scripts_1.config;
@@ -4,8 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a, _b;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- const node_path_1 = __importDefault(require("node:path"));
8
- const node_v8_1 = __importDefault(require("node:v8"));
9
7
  const scripts_1 = require("@digest/scripts");
10
8
  const preload_webpack_plugin_1 = __importDefault(require("@vue/preload-webpack-plugin"));
11
9
  const case_sensitive_paths_webpack_plugin_1 = __importDefault(require("case-sensitive-paths-webpack-plugin"));
@@ -19,6 +17,8 @@ const html_webpack_harddisk_plugin_1 = __importDefault(require("html-webpack-har
19
17
  const html_webpack_link_type_plugin_1 = require("html-webpack-link-type-plugin");
20
18
  const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
21
19
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
20
+ const node_path_1 = __importDefault(require("node:path"));
21
+ const node_v8_1 = __importDefault(require("node:v8"));
22
22
  const terser_webpack_plugin_1 = __importDefault(require("terser-webpack-plugin"));
23
23
  const webpack_1 = require("webpack");
24
24
  const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
@@ -84,7 +84,9 @@ const generateName = (extension, chunkName) => {
84
84
  const configuration = {
85
85
  cache: cache ?
86
86
  {
87
- cacheDirectory: node_path_1.default.join(cache, 'webpack'),
87
+ cacheDirectory: node_path_1.default.join(cache, 'webpack', scripts_1.config.reactNative && scripts_1.config.webpackReactNative ?
88
+ 'native' :
89
+ 'web'),
88
90
  type: 'filesystem'
89
91
  } :
90
92
  false,
@@ -208,12 +210,12 @@ const configuration = {
208
210
  })
209
211
  },
210
212
  {
211
- exclude: /(node_modules|lib|dist)[\\/\\\\]/u,
213
+ exclude: /(node_modules|lib|dist)[\\/]/u,
212
214
  test: /\.js$/u,
213
215
  use: scriptLoaders()
214
216
  },
215
217
  {
216
- exclude: /(node_modules|lib|dist)[\\/\\\\]/u,
218
+ exclude: /(node_modules|lib|dist)[\\/]/u,
217
219
  test: /\.mjs$/u,
218
220
  use: scriptLoaders()
219
221
  }
@@ -221,7 +223,7 @@ const configuration = {
221
223
  scripts_1.config.webpackReact ?
222
224
  [
223
225
  {
224
- exclude: /(node_modules|lib|dist)[\\/\\\\]/u,
226
+ exclude: /(node_modules|lib|dist)[\\/]/u,
225
227
  test: /\.jsx$/u,
226
228
  use: scriptLoaders()
227
229
  }
@@ -230,7 +232,7 @@ const configuration = {
230
232
  scripts_1.config.webpackTypeScript ?
231
233
  [
232
234
  {
233
- exclude: /(node_modules|lib|dist)[\\/\\\\]/u,
235
+ exclude: /(node_modules|lib|dist)[\\/]/u,
234
236
  test: /\.ts$/u,
235
237
  use: scriptLoaders({
236
238
  typescript: true
@@ -243,7 +245,7 @@ const configuration = {
243
245
  scripts_1.config.webpackTypeScript ?
244
246
  [
245
247
  {
246
- exclude: /(node_modules|lib|dist)[\\/\\\\]/u,
248
+ exclude: /(node_modules|lib|dist)[\\/]/u,
247
249
  test: /\.tsx$/u,
248
250
  use: scriptLoaders({
249
251
  typescript: true
@@ -563,6 +565,15 @@ const configuration = {
563
565
  } :
564
566
  {}),
565
567
  extensions: [
568
+ ...scripts_1.config.reactNative && scripts_1.config.reactNativeWeb && scripts_1.config.webpackReactNative ?
569
+ [
570
+ '.web.js',
571
+ '.web.mjs',
572
+ '.web.jsx',
573
+ '.web.ts',
574
+ '.web.tsx'
575
+ ] :
576
+ [],
566
577
  '.js',
567
578
  '.mjs',
568
579
  '.jsx',
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.1.2",
5
+ "version": "4.1.4",
6
6
  "description": "Digested Webpack Configurations",
7
7
  "author": {
8
8
  "name": "wallzero @wallzeroblog",
@@ -47,15 +47,15 @@
47
47
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
48
48
  },
49
49
  "dependencies": {
50
- "@digest/scripts": "^4.1.2",
51
- "@swc/core": "^1.3.17",
50
+ "@digest/scripts": "^4.1.4",
51
+ "@swc/core": "^1.3.35",
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
57
  "compression-webpack-plugin": "^10.0.0",
58
- "css-loader": "^6.7.2",
58
+ "css-loader": "^6.7.3",
59
59
  "css-minimizer-webpack-plugin": "^4.2.2",
60
60
  "duplicate-package-checker-webpack-plugin": "^3.0.0",
61
61
  "html-loader": "^4.2.0",
@@ -64,7 +64,7 @@
64
64
  "html-webpack-plugin": "^5.5.0",
65
65
  "identity-obj-proxy": "^3.0.0",
66
66
  "ip": "^1.1.8",
67
- "mini-css-extract-plugin": "^2.6.1",
67
+ "mini-css-extract-plugin": "^2.7.2",
68
68
  "raw-loader": "^4.0.2",
69
69
  "source-map-loader": "^4.0.1",
70
70
  "stats-webpack-plugin": "~0.7.0",
@@ -73,18 +73,18 @@
73
73
  "thread-loader": "^3.0.4",
74
74
  "url-loader": "^4.1.1",
75
75
  "webpack": "^5.75.0",
76
- "webpack-bundle-analyzer": "^4.7.0",
77
- "webpack-cli": "^4.10.0",
76
+ "webpack-bundle-analyzer": "^4.8.0",
77
+ "webpack-cli": "^5.0.1",
78
78
  "webpack-favicons": "^1.3.8",
79
79
  "webpack-node-externals": "^3.0.0",
80
80
  "webpack-subresource-integrity": "^5.1.0"
81
81
  },
82
82
  "devDependencies": {
83
- "@digest/webpack-workbox": "^4.1.2",
83
+ "@digest/webpack-workbox": "^4.1.4",
84
84
  "@types/clean-webpack-plugin": "^0.1.3",
85
85
  "@types/ip": "^1.1.0",
86
86
  "@types/mini-css-extract-plugin": "^2.5.1",
87
- "@types/node": "^18.11.9",
87
+ "@types/node": "^18.13.0",
88
88
  "@types/terser-webpack-plugin": "^5.2.0",
89
89
  "@types/webpack-bundle-analyzer": "^4.6.0",
90
90
  "@types/webpack-env": "^1.18.0"
@@ -94,5 +94,5 @@
94
94
  "build",
95
95
  "hmr"
96
96
  ],
97
- "gitHead": "2e288724dc697442853a361d48e6de4eb9882451"
97
+ "gitHead": "0feeb837fb854241aaa341aa0dce8939cc2e6a46"
98
98
  }