--target bundler generates static WASM ESM imports that only work through a bundler. --target web generates fetch-based WASM loading via import.meta.url which browsers handle natively. - Change wasm-pack build target from bundler to web - Call wasmModule.default() (init) after import in maybeLoadWasm - Add .gitignore to exclude dist/ and wasm/ build outputs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 lines
39 B
Plaintext
6 lines
39 B
Plaintext
node_modules/
|
|
dist/
|
|
wasm/
|
|
target/
|
|
pkg/
|