mirror of https://github.com/webpack/webpack.git
Merge pull request #15480 from webpack/fix/module-chunk-loading
fix module chunk loading
This commit is contained in:
commit
770dea1fb4
|
@ -25,7 +25,9 @@ class ModuleChunkLoadingPlugin {
|
||||||
const isEnabledForChunk = chunk => {
|
const isEnabledForChunk = chunk => {
|
||||||
const options = chunk.getEntryOptions();
|
const options = chunk.getEntryOptions();
|
||||||
const chunkLoading =
|
const chunkLoading =
|
||||||
(options && options.chunkLoading) || globalChunkLoading;
|
options && options.chunkLoading !== undefined
|
||||||
|
? options.chunkLoading
|
||||||
|
: globalChunkLoading;
|
||||||
return chunkLoading === "import";
|
return chunkLoading === "import";
|
||||||
};
|
};
|
||||||
const onceForChunkSet = new WeakSet();
|
const onceForChunkSet = new WeakSet();
|
||||||
|
|
Loading…
Reference in New Issue