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

ESM build #64

Open
lionel-rowe opened this issue Oct 14, 2024 · 0 comments
Open

ESM build #64

lionel-rowe opened this issue Oct 14, 2024 · 0 comments
Labels
modernization Modernize to fit current spec(s)

Comments

@lionel-rowe
Copy link

It would be helpful to provide an ESM build lib/browser/index.mjs as well as the current UMD one lib/browser/index.js, for use in modern browsers and Deno (also supported by Bun and even NodeJS LTS now). The current UMD browser bundle crashes upon import to Deno 2.0.0 due to the removal of the window variable (monkey patching globalThis.window = globalThis prior to import works, but it's hacky and could be liable to break other things).

@justinwilaby justinwilaby added the modernization Modernize to fit current spec(s) label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modernization Modernize to fit current spec(s)
Projects
None yet
Development

No branches or pull requests

2 participants