babel-preset-es2015-rollup icon indicating copy to clipboard operation
babel-preset-es2015-rollup copied to clipboard

babel-preset-es2015 deprecation warning

Open adamshaylor opened this issue 8 years ago • 3 comments

npm WARN deprecated [email protected]: We're super 😸 excited that you're trying to use ES2015 syntax, but instead of making more yearly presets 😭 , Babel now has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. preset-env without options will compile ES2015+ down to ES5 just like using all the presets together and thus is more future proof. It also allows you to target specific browsers so that Babel can do less work and you can ship native ES2015+ to user 😎 ! We are also in the process of releasing v7, so please give http://babeljs.io/blog/2017/09/12/planning-for-7.0 a read and help test it out in beta! Thanks so much for using Babel 🙏, please give us a follow on Twitter @babeljs for news on Babel, join slack.babeljs.io for discussion/development and help support the project at opencollective.com/babel

The deprecation appears to be applied across all versions on npm, so suppressing it isn’t as simple as pegging it to a patch release. I’m not clear on how Babel’s migration to babel-preset-env plays out for this repo or rollup in general but I didn’t see a ticket for this yet and would like to start that discussion.

adamshaylor avatar Sep 15 '17 23:09 adamshaylor

Maybe we can just drop special rollup preset?

stalkerg avatar Sep 25 '17 07:09 stalkerg

I'm having the same issue with my NPM modules that uses this. Everyone getting warnings same as above. Any way to update it to use "babel-preset-env" internally?

rbiggs avatar Sep 25 '17 13:09 rbiggs

I see this warning as well

steveblue avatar Oct 10 '17 01:10 steveblue