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/plugins/mini-css-extract-plugin.mdx
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ module.exports = {
95
95
|**[`attributes`](#attributes)**|`{Object}`|`{}`| Adds custom attributes to the `link` tag for [non-initial (async)](/concepts/under-the-hood/#chunks) CSS chunks |
96
96
|**[`linkType`](#linktype)**|`{String\|Boolean}`|`text/css`| Allows loading asynchronous chunks with a custom link type |
97
97
|**[`runtime`](#runtime)**|`{Boolean}`|`true`| Allows to enable/disable the runtime generation |
98
-
|**[`experimentalUseImportModule`](#experimentaluseimportmodule)**|`{Boolean}`|`false`| Use an experimental webpack API to execute modules instead of child compilers |
98
+
|**[`experimentalUseImportModule`](#experimentaluseimportmodule)**|`{Boolean}`|`undefined`| Use an experimental webpack API to execute modules instead of child compilers |
99
99
100
100
#### `filename`
101
101
@@ -308,13 +308,16 @@ module.exports = {
308
308
309
309
#### `experimentalUseImportModule`
310
310
311
-
Use an experimental webpack API to execute modules instead of child compilers.
311
+
Type: `Boolean`
312
+
Default: `undefined`
312
313
313
-
This improves performance and memory usage a lot, but isn't as stable as the normal approach.
314
+
Enabled by default if not explicitly enabled (i.e. `true` and `false` allow you to explicitly control this option) and new API is available (at least webpack `5.52.0` is required).
315
+
Boolean values are available since version `5.33.2`, but you need to enable `experiments.executeModule` (not required from webpack `5.52.0`).
314
316
315
-
When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
317
+
Use a new webpack API to execute modules instead of child compilers.
318
+
This improves performance and memory usage a lot.
316
319
317
-
You need to have at least webpack 5.33.2.
320
+
When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
0 commit comments