Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a22663f

Browse files
committed
Auto-enable proxy_primitive_instanceof for type = "rust" projects
1 parent 720794a commit a22663f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/plugins/build.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,9 @@ export function _populateBuildConfig(
138138
"generated",
139139
"script.wasm"
140140
);
141+
142+
// Proxy `instanceof` checks on primitives for wasm-bindgen
143+
config.miniflare ??= {};
144+
config.miniflare.proxy_primitive_instanceof = true;
141145
}
142146
}

0 commit comments

Comments
 (0)