You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/output.mdx
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,8 @@ module.exports = {
172
172
173
173
The format of chunks (formats included by default are `'array-push'` (web/WebWorker), `'commonjs'` (node.js), `'module'` (ESM), but others might be added by plugins).
174
174
175
+
T> The default value of this option depends on the [`target`](/configuration/target/) and [`output.module`](#outputmodule) setting. For more details, search for `"chunkFormat"`[in the webpack defaults](https://github.com/webpack/webpack/blob/main/lib/config/defaults.js).
176
+
175
177
**webpack.config.js**
176
178
177
179
```javascript
@@ -226,6 +228,8 @@ module.exports = {
226
228
227
229
The method to load chunks (methods included by default are `'jsonp'` (web), `'import'` (ESM), `'importScripts'` (WebWorker), `'require'` (sync node.js), `'async-node'` (async node.js), but others might be added by plugins).
228
230
231
+
T> The default value of this option depends on the [`target`](/configuration/target/) and [`chunkFormat `](#outputchunkformat) setting. For more details, search for `"chunkLoading"`[in the webpack defaults](https://github.com/webpack/webpack/blob/main/lib/config/defaults.js).
232
+
229
233
**webpack.config.js**
230
234
231
235
```javascript
@@ -353,7 +357,7 @@ module.exports = {
353
357
};
354
358
```
355
359
356
-
The following substitutions are available in template strings (via webpack's internal [`ModuleFilenameHelpers`](https://github.com/webpack/webpack/blob/master/lib/ModuleFilenameHelpers.js)):
360
+
The following substitutions are available in template strings (via webpack's internal [`ModuleFilenameHelpers`](https://github.com/webpack/webpack/blob/main/lib/ModuleFilenameHelpers.js)):
@@ -564,7 +568,7 @@ Note this option does not affect output files for on-demand-loaded chunks. It on
564
568
565
569
### Template strings
566
570
567
-
The following substitutions are available in template strings (via webpack's internal [`TemplatedPathPlugin`](https://github.com/webpack/webpack/blob/master/lib/TemplatedPathPlugin.js)):
571
+
The following substitutions are available in template strings (via webpack's internal [`TemplatedPathPlugin`](https://github.com/webpack/webpack/blob/main/lib/TemplatedPathPlugin.js)):
568
572
569
573
Substitutions available on Compilation-level:
570
574
@@ -864,7 +868,7 @@ In the above example, we're passing a single entry file to `entry`, however, web
864
868
</script>
865
869
```
866
870
867
-
See [this example](https://github.com/webpack/webpack/tree/master/examples/multi-part-library) for more.
871
+
See [this example](https://github.com/webpack/webpack/tree/main/examples/multi-part-library) for more.
868
872
869
873
Note that the above configuration won't work as expected if you're going to configure library options per entry point. Here is how to do it [under each of your entries](/concepts/entry-points/#entrydescription-object):
870
874
@@ -2289,7 +2293,7 @@ module.exports = {
2289
2293
2290
2294
The new option `workerChunkLoading` controls the chunk loading of workers.
2291
2295
2292
-
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).
2296
+
T> The default value of this option depends on the [`target`](/configuration/target/) setting. For more details, search for `"workerChunkLoading"`[in the webpack defaults](https://github.com/webpack/webpack/blob/main/lib/config/defaults.js).
0 commit comments