@digest/webpack 4.1.0 → 4.1.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.
- package/dist/threadLoader.d.ts +1 -0
- package/dist/threadLoader.js +16 -0
- package/package.json +9 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
7
|
+
const workers = node_os_1.default.cpus().length - 2 < 1 ?
|
|
8
|
+
1 :
|
|
9
|
+
node_os_1.default.cpus().length - 2;
|
|
10
|
+
const threadLoader = {
|
|
11
|
+
loader: 'thread-loader',
|
|
12
|
+
options: {
|
|
13
|
+
workers
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
module.exports = threadLoader;
|
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.
|
|
5
|
+
"version": "4.1.1",
|
|
6
6
|
"description": "Digested Webpack Configurations",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "wallzero @wallzeroblog",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"/dist/scriptLoaders.js",
|
|
31
31
|
"/dist/styleLoaders.d.ts",
|
|
32
32
|
"/dist/styleLoaders.js",
|
|
33
|
+
"/dist/threadLoader.d.ts",
|
|
34
|
+
"/dist/threadLoader.js",
|
|
33
35
|
"/dist/webpack.config.d.ts",
|
|
34
36
|
"/dist/webpack.config.js",
|
|
35
37
|
"/share/favicon.png",
|
|
@@ -45,15 +47,15 @@
|
|
|
45
47
|
"clean": "rimraf node_modules dist package-lock.json npm-debug.log"
|
|
46
48
|
},
|
|
47
49
|
"dependencies": {
|
|
48
|
-
"@digest/scripts": "^4.1.
|
|
49
|
-
"@swc/core": "^1.3.
|
|
50
|
+
"@digest/scripts": "^4.1.1",
|
|
51
|
+
"@swc/core": "^1.3.17",
|
|
50
52
|
"@vue/preload-webpack-plugin": "^2.0.0",
|
|
51
53
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
52
54
|
"circular-dependency-plugin": "^5.2.2",
|
|
53
55
|
"clean-terminal-webpack-plugin": "^3.0.0",
|
|
54
56
|
"clean-webpack-plugin": "^4.0.0",
|
|
55
57
|
"compression-webpack-plugin": "^10.0.0",
|
|
56
|
-
"css-loader": "^6.7.
|
|
58
|
+
"css-loader": "^6.7.2",
|
|
57
59
|
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
58
60
|
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
|
59
61
|
"html-loader": "^4.2.0",
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
"terser-webpack-plugin": "^5.3.6",
|
|
71
73
|
"thread-loader": "^3.0.4",
|
|
72
74
|
"url-loader": "^4.1.1",
|
|
73
|
-
"webpack": "^5.
|
|
75
|
+
"webpack": "^5.75.0",
|
|
74
76
|
"webpack-bundle-analyzer": "^4.7.0",
|
|
75
77
|
"webpack-cli": "^4.10.0",
|
|
76
78
|
"webpack-favicons": "^1.3.8",
|
|
@@ -78,7 +80,7 @@
|
|
|
78
80
|
"webpack-subresource-integrity": "^5.1.0"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
|
-
"@digest/webpack-workbox": "^4.1.
|
|
83
|
+
"@digest/webpack-workbox": "^4.1.1",
|
|
82
84
|
"@types/clean-webpack-plugin": "^0.1.3",
|
|
83
85
|
"@types/ip": "^1.1.0",
|
|
84
86
|
"@types/mini-css-extract-plugin": "^2.5.1",
|
|
@@ -92,5 +94,5 @@
|
|
|
92
94
|
"build",
|
|
93
95
|
"hmr"
|
|
94
96
|
],
|
|
95
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "eb0da3a7fe80ac49b7beb7a5e6a57b7f010536d2"
|
|
96
98
|
}
|