nhsuk/sexual-health-service-finder

Use the latest Babel version and preset env package

Closed this issue ยท 1 comments

Babel has a new version and preset env package for handling presets, its currently throwing the following warning during the build:

We're super ๐Ÿ˜ธ excited that you're trying to use ES2017+ 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

warning babel-brunch > babel-preset-latest > babel-preset-es2015@6.24.1: ๐Ÿ™Œ Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!

Updated as part of changes included in #177