babel-standalone icon indicating copy to clipboard operation
babel-standalone copied to clipboard

Set defaualt presets as `latest,stage-0,react`

Open murashki opened this issue 7 years ago • 4 comments

Perhaps it would be advisable to set defaualt presets as latest,stage-0,react (or latest,stage-1,react). We have es2015,react default presets, but why? Why not es2015,es2016 (current year) or latest?

I propose to fix default presets, or we must provide understandable explanation (logic, strategy) of which presets currently default and why.

Thanks for your work!

murashki avatar Aug 28 '16 11:08 murashki

Maybe es2016 should be included as default, but stage 0 proposals are generally not stable enough to be recommended for wide use (eg. as a default). ECMAScript proposals that are at stage 0 can be rejected or totally removed from the spec, and you use them at your own risk :smile:

Daniel15 avatar Aug 29 '16 01:08 Daniel15

Your comment (recommendation) about stage-0 certainly useful when we decide use some features or not in out codebase. But this recommendation may be slightly inappropriate when we talk about transpiler defaults. I mean this are different things...

Ok. So i see such variants as: latest,stage-0,react latest,stage-1,react - good idea for transpiler defaults! :) latest,stage-4,react latest,react

murashki avatar Aug 29 '16 13:08 murashki

latest as default sounds fine

hzoo avatar Oct 01 '16 05:10 hzoo

But React Start App use stage-0 by default, and I think this is right deсision!

murashki avatar Oct 01 '16 12:10 murashki