Skip to content

v2.0.2

Compare
Choose a tag to compare
@myl7 myl7 released this 20 Oct 08:26
· 31 commits to goshujin-sama since this release
8ed3bac

Fixes

New features

  • Experimentally add the sync and async subpath exports to help for bundler use
    • sync uses import ... from ... and async uses import(...) to import the WASM binary
    • Bundlers that can recognize any of them (e.g., webpack with options) can automatically copy the WASM binary to the output dir
    • Instead of the default import method in the root path, which is to fetch the WASM binary with the URL relative to the importing module