Skip to content

Commit

Permalink
Auto-enable proxy_primitive_instanceof for type = "rust" projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Jan 7, 2022
1 parent cb51bf6 commit 4e78e33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/plugins/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,9 @@ export function _populateBuildConfig(
"generated",
"script.wasm"
);

// Proxy `instanceof` checks on primitives for wasm-bindgen
config.miniflare ??= {};
config.miniflare.proxy_primitive_instanceof = true;
}
}

0 comments on commit 4e78e33

Please sign in to comment.