Skip to content

Commit a6ec086

Browse files
authored
fix: determine wasmLoading by target (#1136)
1 parent 019169f commit a6ec086

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

packages/core/src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ const composeFormatConfig = ({
613613
},
614614
chunkLoading: 'import',
615615
workerChunkLoading: 'import',
616-
wasmLoading: 'fetch',
617616
},
618617
experiments: {
619618
outputModule: true,
@@ -643,7 +642,6 @@ const composeFormatConfig = ({
643642
},
644643
chunkLoading: 'require',
645644
workerChunkLoading: 'async-node',
646-
wasmLoading: 'async-node',
647645
},
648646
plugins,
649647
},

packages/core/tests/__snapshots__/config.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
216216
"type": "modern-module",
217217
},
218218
"module": true,
219-
"wasmLoading": "fetch",
220219
"workerChunkLoading": "import",
221220
},
222221
"plugins": [
@@ -482,7 +481,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
482481
"library": {
483482
"type": "commonjs-static",
484483
},
485-
"wasmLoading": "async-node",
486484
"workerChunkLoading": "async-node",
487485
},
488486
"plugins": [

0 commit comments

Comments
 (0)