We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf84ccb commit 94c97b7Copy full SHA for 94c97b7
packages/vite/src/node/plugins/wasm.ts
@@ -54,7 +54,10 @@ const wasmHelper = async (opts = {}, url: string) => {
54
const wasmHelperCode = wasmHelper.toString()
55
56
export const wasmHelperPlugin = (config: ResolvedConfig): Plugin => {
57
- if (config.experimental.enableNativePlugin === true) {
+ if (
58
+ config.experimental.enableNativePlugin === true &&
59
+ config.command === 'build'
60
+ ) {
61
return nativeWasmHelperPlugin()
62
}
63
0 commit comments