diff --git a/src/content/configuration/output.md b/src/content/configuration/output.md index 8cd17dfdaa06..d4de9e8472c4 100644 --- a/src/content/configuration/output.md +++ b/src/content/configuration/output.md @@ -24,6 +24,7 @@ contributors: - hiroppy - chenxsan - snitin315 + - QC-L --- The top-level `output` key contains set of options instructing webpack on how and where it should output your bundles, assets and anything else you bundle or load with webpack. @@ -1148,6 +1149,25 @@ module.exports = { }; ``` +## `output.workerChunkLoading` + +`string: 'require' | 'import-scripts' | 'async-node' | 'import' | 'universal'` `boolean: false` + +The new option `workerChunkLoading` controls the chunk loading of workers. + +T> The default value of this option is depending on the `target` setting. For more details, search for `"workerChunkLoading"`: [in the webpack defaults](https://github.com/webpack/webpack/blob/master/lib/config/defaults.js). + +__webpack.config.js__ + +```javascript +module.exports = { + //... + output: { + workerChunkLoading: false + } +}; +``` + ## `output.enabledLibraryTypes` `[string]`