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

esm2 entrypoint with no import.meta.url #110

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Conversation

kylebarron
Copy link
Owner

@kylebarron kylebarron commented Apr 26, 2022

To solve bundling problems in visgl/loaders.gl#2103. I found that the best way to solve the bundling issue for use in another library was to use the node import for node and the esm import for bundling. However the esm bundle created by wasm-pack includes import.meta.url, which is a syntax error.

I'll leave this functionality undocumented for now because this API could change.

Somewhat related to #89.

References:

@kylebarron kylebarron merged commit 628f749 into main Apr 26, 2022
@kylebarron kylebarron deleted the kyle/no-import-meta-url branch April 26, 2022 16:26
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.

None yet

1 participant