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.md
+35
Original file line number
Diff line number
Diff line change
@@ -1201,6 +1201,41 @@ module.exports = {
1201
1201
};
1202
1202
```
1203
1203
1204
+
## `output.wasmLoading`
1205
+
1206
+
`boolean = false``string`
1207
+
1208
+
Option to set the method of loading WebAssembly Modules. Methods included by default are `'fetch'` (web/WebWorker), `'async-node'` (Node.js), but others might be added by plugins.
1209
+
1210
+
The default value can be affected by different [`target`](/configuration/target/):
1211
+
1212
+
- Defaults to `'fetch'` if [`target`](/configuration/target/) is set to `'web'`, `'webworker'`, `'electron-renderer'` or `'node-webkit'`.
1213
+
- Defaults to `'async-node'` if [`target`](/configuration/target/) is set to `'node'`, `'async-node'`, `'electron-main'` or `'electron-preload'`.
1214
+
1215
+
```javascript
1216
+
module.exports= {
1217
+
//...
1218
+
output: {
1219
+
wasmLoading:'fetch'
1220
+
}
1221
+
};
1222
+
```
1223
+
1224
+
## `output.enabledWasmLoadingTypes`
1225
+
1226
+
`[string]`
1227
+
1228
+
List of wasm loading types enabled for use by entry points.
0 commit comments