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

Integration with preset-env - compile target option #428

Open
boopathi opened this issue Feb 17, 2017 · 1 comment
Open

Integration with preset-env - compile target option #428

boopathi opened this issue Feb 17, 2017 · 1 comment
Milestone

Comments

@boopathi
Copy link
Member

Prior art:

#387 (comment)

Some optimizations which involve creating new functions or replacing or adding new functions or variables could be simplified to use the newer JS syntax (arrow functions, object methods, shorthand properties, default params, etc...). But we need an option to specify the target language version.

With babel-preset-env data it is possible to specify the target browsers, nodejs versions and use a particular feature - say arrow-functions, or spread-operator based on the computed values.

@boopathi boopathi changed the title Option to specify compile target - Integration with preset-env Integration with preset-env - compile target option Feb 17, 2017
@nitin42
Copy link

nitin42 commented Feb 19, 2017

I think this relies on enhancing the cli. Because the new cli would take presets options and some other babel options !?? Using the compat-table data would not be possible then !

@boopathi boopathi modified the milestone: 1.0 Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants