@digest/webpack 4.0.8 → 4.0.9

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,20 +3,11 @@ 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_os_1 = __importDefault(require("node:os"));
7
6
  const node_path_1 = __importDefault(require("node:path"));
8
7
  const scripts_1 = require("@digest/scripts");
8
+ const threadLoader = require('./threadLoader');
9
9
  const configuration = require('./webpack.config');
10
10
  const { cache } = scripts_1.config;
11
- const workers = node_os_1.default.cpus().length - 2 < 1 ?
12
- 1 :
13
- node_os_1.default.cpus().length - 2;
14
- const threadLoader = {
15
- loader: 'thread-loader',
16
- options: {
17
- workers
18
- }
19
- };
20
11
  const scriptLoaders = (options = {}) => {
21
12
  return [].concat(scripts_1.config.parallel ?
22
13
  [
@@ -3,19 +3,10 @@ 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_os_1 = __importDefault(require("node:os"));
7
6
  const scripts_1 = require("@digest/scripts");
8
7
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
8
+ const threadLoader = require('./threadLoader');
9
9
  const configuration = require('./webpack.config');
10
- const workers = node_os_1.default.cpus().length - 2 < 1 ?
11
- 1 :
12
- node_os_1.default.cpus().length - 2;
13
- const threadLoader = {
14
- loader: 'thread-loader',
15
- options: {
16
- workers
17
- }
18
- };
19
10
  const styleLoaders = (options = {}) => {
20
11
  options.camelCase = options.camelCase === undefined ?
21
12
  true :
@@ -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;
@@ -26,7 +26,7 @@ const webpack_favicons_1 = __importDefault(require("webpack-favicons"));
26
26
  const webpack_node_externals_1 = __importDefault(require("webpack-node-externals"));
27
27
  const webpack_subresource_integrity_1 = require("webpack-subresource-integrity");
28
28
  const scriptLoaders = require('./scriptLoaders');
29
- const styleLoaders = require('./scriptLoaders');
29
+ const styleLoaders = require('./styleLoaders');
30
30
  const { cache } = scripts_1.config;
31
31
  let GenerateSW;
32
32
  let WorkboxEntry;
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.0.8",
5
+ "version": "4.0.9",
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,7 +47,7 @@
45
47
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
46
48
  },
47
49
  "dependencies": {
48
- "@digest/scripts": "^4.0.8",
50
+ "@digest/scripts": "^4.0.9",
49
51
  "@swc/core": "^1.3.9",
50
52
  "@vue/preload-webpack-plugin": "^2.0.0",
51
53
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
@@ -78,7 +80,7 @@
78
80
  "webpack-subresource-integrity": "^5.1.0"
79
81
  },
80
82
  "devDependencies": {
81
- "@digest/webpack-workbox": "^4.0.8",
83
+ "@digest/webpack-workbox": "^4.0.9",
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",