hapi-react icon indicating copy to clipboard operation
hapi-react copied to clipboard

Use babel-preset-latest in default babel options

Open tomkel opened this issue 8 years ago • 2 comments

Wouldn't it make more sense to support es2015-17 by default, rather than only es2015?

{presets: ['react', 'latest']}

tomkel avatar Mar 03 '17 23:03 tomkel

I'm not too familiar with the presets option. I've just been keeping parity with https://github.com/reactjs/express-react-views/blob/master/index.js. That said, if you think it's not too far a leap from express-react-views then please open a PR. Thanks!

landau avatar Mar 10 '17 21:03 landau

babel-preset-env is recommended by the creator over es2015 or latest https://babeljs.io/docs/setup/#installation

tomkel avatar Mar 11 '17 01:03 tomkel