Created by: clemmy
Babel 7 has a lot of new goodies, including JSX fragments. This PR is an attempt to make a pre-release for users to try out Babel 7 with CRA.
Things I'm still trying to mesh out/blocked on:
-
Needed to disable pre-commit hook that runs prettier because it doesn't support JSX fragments, and wouldn't let me commit -
Need to disable UglifyJsPlugin
to makenpm run build
inreact-error-overlay
work, can't figure out why -
Need to add old configuration back into babel-preset-react-app
, currently it's overwritten withbabel-preset-react
-
Address this PR? -
Do I need to do anything with Lerna in this PR? -
Need to re-enable https://github.com/airbnb/babel-plugin-dynamic-import-node. It might be fine to just put it in, but it'll download all the babel 6.x dependencies. -
Tests are failing. Babel-jest works with Babel 7.x, but jest-runtime depends on Babel 6.x. What's the solution here?
Possibly Relevant Links: https://github.com/webpack/webpack-dev-server/issues/1104#issuecomment-330516760 https://github.com/babel/babel-preset-env/pull/264/files https://github.com/facebook/jest/pull/4557#issuecomment-344202240