Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions packages/core/src/plugins/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export const pluginWasm = (): RsbuildPlugin => ({
getFilename(config, 'wasm', isProd),
);

chain.experiments({
...chain.get('experiments'),
asyncWebAssembly: true,
});

chain.output.webassemblyModuleFilename(filename);

// support new URL('./abc.wasm', import.meta.url)
Expand Down
3 changes: 0 additions & 3 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] =
"./src/index.js",
],
},
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down
12 changes: 0 additions & 12 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
"./src/index.js",
],
},
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down Expand Up @@ -507,9 +504,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
"./src/index.js",
],
},
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down Expand Up @@ -1029,9 +1023,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
{
"context": "<ROOT>/packages/core/tests",
"devtool": "cheap-module-source-map",
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down Expand Up @@ -1466,9 +1457,6 @@ exports[`tools.rspack > should match snapshot 1`] = `
{
"context": "<ROOT>/packages/core/tests",
"devtool": "cheap-module-source-map",
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down
6 changes: 0 additions & 6 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1440,9 +1440,6 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
{
"context": "<ROOT>",
"devtool": "eval-source-map",
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down Expand Up @@ -1877,9 +1874,6 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
{
"context": "<ROOT>",
"devtool": "eval",
"experiments": {
"asyncWebAssembly": true,
},
"infrastructureLogging": {
"level": "error",
},
Expand Down
3 changes: 0 additions & 3 deletions packages/core/tests/__snapshots__/wasm.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

exports[`plugin-wasm > should add wasm rule properly 1`] = `
{
"experiments": {
"asyncWebAssembly": true,
},
"module": {
"rules": [
{
Expand Down
Loading