Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Use the babel preset react-app #234

Closed
johangirod opened this issue Feb 15, 2017 · 3 comments
Closed

Use the babel preset react-app #234

johangirod opened this issue Feb 15, 2017 · 3 comments

Comments

@johangirod
Copy link
Contributor

We could use the babel preset from create-react-app. It's pretty sure to be well updated, and should be perfect for our use. Yay ? Nay ?

https://github.com/facebookincubator/create-react-app/tree/master/packages/babel-preset-react-app

@christophehurpeau
Copy link
Contributor

It doesn't work if we want to use all features of node 6.
The preset contains babel-preset-latest so and includes babel-preset-es2015

However, we should include in vitamin :

  • babel-plugin-transform-react-jsx-source
  • babel-plugin-transform-react-jsx-self

@christophehurpeau
Copy link
Contributor

And also: useBuiltIns: true. There is a PR to make it work with presets: babel/babel#5250

@johangirod
Copy link
Contributor Author

That settles it, then !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants