Skip to content
20 changes: 20 additions & 0 deletions src/content/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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]`
Expand Down