mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 10:11:34 +00:00
Fix direct imports in --target web
Currently the import object constructed for the `--target web` output only ever includes the current module as an one of the modules included. With `wasm-bindgen`'s optimization to import directly from modules, however, it's possible to have more modules imported from in the generated wasm file. This commit ensures that the imports are hooked up in the `--target web` es6 emulation mode, ensuring there aren't extraneous errors about import objects.
This commit is contained in:
3
tests/headless/modules.js
Normal file
3
tests/headless/modules.js
Normal file
@ -0,0 +1,3 @@
|
||||
export function get_five() {
|
||||
return 5;
|
||||
}
|
Reference in New Issue
Block a user