8000 Generate ES6 JS module on wasm build by hyzyla · Pull Request #130 · paulocoutinhox/pdfium-lib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Generate ES6 JS module on wasm build #130

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

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

hyzyla
Copy link
Contributor
@hyzyla hyzyla commented Aug 27, 2024

Hello! 👋 I'm trying to add web support for my JS package https://github.com/hyzyla/pdfium, which depends on your WASM build. However, I found it difficult to work with the JS module generated by Emscripten. It's generated as a UMD module, and some bundlers get crazy when they encounter "require" statements in the code. In this pull request, I've added an additional step that generates an ES6 module alongside the old UMD module to simplify integration of generated code with ES6 projects

@paulocoutinhox paulocoutinhox merged commit a432463 into paulocoutinhox:master Aug 28, 2024
@paulocoutinhox
Copy link
Owner

Thanks for this.

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

Successfully merging this pull request may close these issues.

2 participants
0