-
Notifications
You must be signed in to change notification settings - Fork 175
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
Support for direct-to-browser ESM #225
Comments
For reference, Luxon is distributed in that form, with both a full and a minified version available. |
I'd like to add ES module support to this package, but I'm not sure how I want to do that yet.
I've added it to my to-do list. I will probably not get to this soon, apologies.
|
Could I make PR for it? |
Yes, but please let me know how you plan to do this beforehand. There are a lot of different ways to accomplish this and I don't want you to have to do a bunch of unnecessary work.
|
Okay, sorry for the late response, I had to finish a personal project 😅 I would fork this repo and do the following things:
|
Thanks for writing this out, because it helps me figure out what's needed. I think my requirements are:
I think that means shipping two files in the npm package: Is that something you could help with? |
From the docs, it looks like the project installs in the browser's global namespace.
Are there any plans to distribute an ES module directly to browsers (without Node.js) that can be imported with an ES6
import
declaration?For instance:
The text was updated successfully, but these errors were encountered: