Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require() of ES Module from tsembind/src/tsembind.js not supported. #8

Open
marcofugaro opened this issue Sep 17, 2021 · 2 comments
Open

Comments

@marcofugaro
Copy link

Screenshot 2021-09-17 at 15 08 16

I am trying to use this library with an EXPORT_ES6 library, the flags I build the library are

    -s MODULARIZE \
    -s EXPORT_ES6 \
    -s ENVIRONMENT='web' \
    -s USE_ES6_IMPORT_META=0 \

And my library ends with:

export default Module;

I also have type="module" in my package.json.

@ted537
Copy link
Owner

ted537 commented Sep 17, 2021

Yeah there should be a test in here that binds a simple void function with -s EXPORT_ES6. Looking into it.

@ted537
Copy link
Owner

ted537 commented Sep 17, 2021

Have you tried disabling the ES6 / web specific flags and running TSEMBIND on the JS/WASM produced from that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants