rorygarand / react-amplitude

React Amplitude Analytics
11 stars 13 forks source link

Replace deprecated babel preset with preset-env #3

Closed jacklorusso closed 6 years ago

jacklorusso commented 6 years ago

babel-preset-es2015 has now been deprecated, and babel-preset-env has replaced it.

react-amplitude users will be receiving the following warning in the terminal:

warning react-amplitude > babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!

Without any configuration options, babel-preset-env behaves exactly the same as babel-preset-latest (or babel-preset-es2015, babel-preset-es2016, and babel-preset-es2017 together).

Hoping this saves you a bit of time if you want to keep the package up to date! Thanks for your work :)

rorygarand commented 6 years ago

You're right! I do want to keep the package up to date, thank you so much for doing this. I'll take a look and get this merged ASAP.