webpack 5.33.1 → 5.33.2
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.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/lib/Compilation.js +1 -1
- package/lib/RuntimePlugin.js +3 -1
- package/lib/node/CommonJsChunkLoadingPlugin.js +3 -1
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +3 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +3 -1
- package/lib/runtime/StartupChunkDependenciesPlugin.js +3 -1
- package/lib/web/FetchCompileAsyncWasmPlugin.js +3 -1
- package/lib/web/FetchCompileWasmPlugin.js +3 -1
- package/lib/web/JsonpChunkLoadingPlugin.js +3 -1
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -1
- package/package.json +1 -1
package/lib/Compilation.js
CHANGED
@@ -4035,7 +4035,7 @@ This prevents using hashes of each other and should be avoided.`);
|
|
4035
4035
|
|
4036
4036
|
const entrypoint = new Entrypoint({
|
4037
4037
|
runtime,
|
4038
|
-
chunkLoading:
|
4038
|
+
chunkLoading: false,
|
4039
4039
|
...options.entryOptions
|
4040
4040
|
});
|
4041
4041
|
chunkGraph.connectChunkAndEntryModule(chunk, module, entrypoint);
|
package/lib/RuntimePlugin.js
CHANGED
@@ -179,7 +179,9 @@ class RuntimePlugin {
|
|
179
179
|
const { publicPath: globalPublicPath, scriptType } = outputOptions;
|
180
180
|
const entryOptions = chunk.getEntryOptions();
|
181
181
|
const publicPath =
|
182
|
-
|
182
|
+
entryOptions && entryOptions.publicPath !== undefined
|
183
|
+
? entryOptions.publicPath
|
184
|
+
: globalPublicPath;
|
183
185
|
|
184
186
|
if (publicPath === "auto") {
|
185
187
|
const module = new AutoPublicPathRuntimeModule();
|
@@ -39,7 +39,9 @@ class CommonJsChunkLoadingPlugin {
|
|
39
39
|
const isEnabledForChunk = chunk => {
|
40
40
|
const options = chunk.getEntryOptions();
|
41
41
|
const chunkLoading =
|
42
|
-
|
42
|
+
options && options.chunkLoading !== undefined
|
43
|
+
? options.chunkLoading
|
44
|
+
: globalChunkLoading;
|
43
45
|
return chunkLoading === chunkLoadingValue;
|
44
46
|
};
|
45
47
|
const onceForChunkSet = new WeakSet();
|
@@ -25,7 +25,9 @@ class ReadFileCompileAsyncWasmPlugin {
|
|
25
25
|
const isEnabledForChunk = chunk => {
|
26
26
|
const options = chunk.getEntryOptions();
|
27
27
|
const wasmLoading =
|
28
|
-
|
28
|
+
options && options.wasmLoading !== undefined
|
29
|
+
? options.wasmLoading
|
30
|
+
: globalWasmLoading;
|
29
31
|
return wasmLoading === "async-node";
|
30
32
|
};
|
31
33
|
const generateLoadBinaryCode = path =>
|
@@ -31,7 +31,9 @@ class ReadFileCompileWasmPlugin {
|
|
31
31
|
const isEnabledForChunk = chunk => {
|
32
32
|
const options = chunk.getEntryOptions();
|
33
33
|
const wasmLoading =
|
34
|
-
|
34
|
+
options && options.wasmLoading !== undefined
|
35
|
+
? options.wasmLoading
|
36
|
+
: globalWasmLoading;
|
35
37
|
return wasmLoading === "async-node";
|
36
38
|
};
|
37
39
|
const generateLoadBinaryCode = path =>
|
@@ -32,7 +32,9 @@ class StartupChunkDependenciesPlugin {
|
|
32
32
|
const isEnabledForChunk = chunk => {
|
33
33
|
const options = chunk.getEntryOptions();
|
34
34
|
const chunkLoading =
|
35
|
-
|
35
|
+
options && options.chunkLoading !== undefined
|
36
|
+
? options.chunkLoading
|
37
|
+
: globalChunkLoading;
|
36
38
|
return chunkLoading === this.chunkLoading;
|
37
39
|
};
|
38
40
|
compilation.hooks.additionalTreeRuntimeRequirements.tap(
|
@@ -24,7 +24,9 @@ class FetchCompileAsyncWasmPlugin {
|
|
24
24
|
const isEnabledForChunk = chunk => {
|
25
25
|
const options = chunk.getEntryOptions();
|
26
26
|
const wasmLoading =
|
27
|
-
|
27
|
+
options && options.wasmLoading !== undefined
|
28
|
+
? options.wasmLoading
|
29
|
+
: globalWasmLoading;
|
28
30
|
return wasmLoading === "fetch";
|
29
31
|
};
|
30
32
|
const generateLoadBinaryCode = path =>
|
@@ -30,7 +30,9 @@ class FetchCompileWasmPlugin {
|
|
30
30
|
const isEnabledForChunk = chunk => {
|
31
31
|
const options = chunk.getEntryOptions();
|
32
32
|
const wasmLoading =
|
33
|
-
|
33
|
+
options && options.wasmLoading !== undefined
|
34
|
+
? options.wasmLoading
|
35
|
+
: globalWasmLoading;
|
34
36
|
return wasmLoading === "fetch";
|
35
37
|
};
|
36
38
|
const generateLoadBinaryCode = path =>
|
@@ -24,7 +24,9 @@ class JsonpChunkLoadingPlugin {
|
|
24
24
|
const isEnabledForChunk = chunk => {
|
25
25
|
const options = chunk.getEntryOptions();
|
26
26
|
const chunkLoading =
|
27
|
-
|
27
|
+
options && options.chunkLoading !== undefined
|
28
|
+
? options.chunkLoading
|
29
|
+
: globalChunkLoading;
|
28
30
|
return chunkLoading === "jsonp";
|
29
31
|
};
|
30
32
|
const onceForChunkSet = new WeakSet();
|
@@ -29,7 +29,9 @@ class ImportScriptsChunkLoadingPlugin {
|
|
29
29
|
const isEnabledForChunk = chunk => {
|
30
30
|
const options = chunk.getEntryOptions();
|
31
31
|
const chunkLoading =
|
32
|
-
|
32
|
+
options && options.chunkLoading !== undefined
|
33
|
+
? options.chunkLoading
|
34
|
+
: globalChunkLoading;
|
33
35
|
return chunkLoading === "import-scripts";
|
34
36
|
};
|
35
37
|
const onceForChunkSet = new WeakSet();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "5.33.
|
3
|
+
"version": "5.33.2",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|