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: README.md
+11-5
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ module.exports = {
88
88
|**[`attributes`](#attributes)**|`{Object}`|`{}`| Adds custom attributes to the `link` tag for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks |
89
89
|**[`linkType`](#linkType)**|`{String\|Boolean}`|`text/css`| Allows loading asynchronous chunks with a custom link type |
90
90
|**[`runtime`](#runtime)**|`{Boolean}`|`true`| Allows to enable/disable the runtime generation |
91
-
|**[`experimentalUseImportModule`](#experimentalUseImportModule)**|`{Boolean}`|`false`| Use an experimental webpack API to execute modules instead of child compilers |
91
+
|**[`experimentalUseImportModule`](#experimentalUseImportModule)**|`{Boolean}`|`undefined`| Use an experimental webpack API to execute modules instead of child compilers |
92
92
93
93
#### `filename`
94
94
@@ -301,13 +301,16 @@ module.exports = {
301
301
302
302
#### `experimentalUseImportModule`
303
303
304
-
Use an experimental webpack API to execute modules instead of child compilers.
304
+
Type: `Boolean`
305
+
Default: `undefined`
305
306
306
-
This improves performance and memory usage a lot, but isn't as stable as the normal approach.
307
+
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).
308
+
Boolean values are available since version `5.33.2`, but you need to enable `experiments.executeModule` (not required from webpack `5.52.0`).
307
309
308
-
When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
310
+
Use a new webpack API to execute modules instead of child compilers.
311
+
This improves performance and memory usage a lot.
309
312
310
-
You need to have at least webpack 5.33.2.
313
+
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