@studyportals/webpack-helper 6.0.7-0 → 6.0.7-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.
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/webpack-helper",
|
|
3
|
-
"version": "6.0.7-
|
|
3
|
+
"version": "6.0.7-4",
|
|
4
4
|
"description": "A collection of standard configurations and helpers for webpack.",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "vitest --watch=false --coverage",
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"prepublish": "npm run build",
|
|
10
|
-
"postinstall": "
|
|
10
|
+
"postinstall": "cp ./assets/.browserslistrc ../../../",
|
|
11
11
|
"deploy-beta": "npm version prerelease && npm run build && npm publish --tag beta --access=public --auth-type=legacy && rm -rf node_modules"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mode_1 = require("../enums/mode");
|
|
4
3
|
const { RetryChunkLoadPlugin } = require('webpack-retry-chunk-load-plugin');
|
|
5
4
|
class ChunksRetryPluginFactory {
|
|
6
5
|
static InjectPlugin(preset) {
|
|
7
6
|
if (!preset.retryChunksConfig) {
|
|
8
7
|
return preset;
|
|
9
8
|
}
|
|
10
|
-
if (preset.mode ===
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
// if (preset.mode === Mode.DEVELOPMENT) {
|
|
10
|
+
// return preset;
|
|
11
|
+
// }
|
|
13
12
|
if (!preset.retryChunksConfig.inject) {
|
|
14
13
|
return preset;
|
|
15
14
|
}
|