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

Publish as ES6 module #31769

Closed
btford opened this issue Mar 29, 2014 · 5 comments
Closed

Publish as ES6 module #31769

btford opened this issue Mar 29, 2014 · 5 comments
Assignees
Milestone

Comments

@btford
Copy link
Contributor

btford commented Mar 29, 2014

No description provided.

@Raynos
Copy link

Raynos commented Mar 29, 2014

For re-usable core modules to be used in the JS ecosystem it's best to write them in ES5.

Zone.js is the type of thing that touches everything you do in your app, writing it by hand and optimizing it by hand is better then relying on an ES6 -> ES5 compiler.

@laurelnaiad
Copy link

But publishing it in an ES6 module wrapper -- along with publishing it in UMD, CJS and as a global object polluter -- that might have some value.

@btford
Copy link
Contributor Author

btford commented Mar 31, 2014

@Raynos I agree.

Like @stu-salsbury said, I'd be writing this in ES5, but publishing with the ES6 module syntax using a build script that wraps it.

@JiaLiPassion JiaLiPassion transferred this issue from angular/zone.js Jul 21, 2019
@JiaLiPassion JiaLiPassion self-assigned this Jul 21, 2019
@ngbot ngbot bot added this to the needsTriage milestone Jul 21, 2019
@JiaLiPassion
Copy link
Contributor

We now have ES2015 module.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants