In bundler mode, generate the package.json with "type": "module" and use the "main" attribute instead of the "module" attribute. This change makes the built ES module palatable to node in --experimental-wasm-modules mode as well as to webpack as illustrated in https://github.com/webpack/webpack/pull/14313master
parent
7ccacca937
commit
c5298f10a2
Loading…
Reference in new issue