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

Native ES6 Module Support #60

Open
foundling opened this issue Sep 15, 2018 · 3 comments
Open

Native ES6 Module Support #60

foundling opened this issue Sep 15, 2018 · 3 comments

Comments

@foundling
Copy link
Contributor

Hey Kris, are you open to a PR augmenting the way alkali is packaged to include native ES6 module support?

@kriszyp
Copy link
Owner

kriszyp commented Sep 15, 2018

Yes, that sounds great. How would we go about doing this? Would it mean generating a .mjs file in the build? If that could provides native module support, that would be awesome.

@foundling
Copy link
Contributor Author

foundling commented Sep 15, 2018

My original thought was that it would be really nice to able to use the type="module attribute on the script tag to access alkali as a module without build tools. Supporting Node is equally important of course, but more complicated, so I'll do some research to figure out what the best approach would be to support both.

@kriszyp
Copy link
Owner

kriszyp commented Sep 15, 2018

I wonder if switching to Rollup might offer better support for building ES6 modules as output?

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