Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Add babel-preset-react-optimize #141

Closed
bkniffler opened this issue Oct 27, 2016 · 2 comments
Closed

Add babel-preset-react-optimize #141

bkniffler opened this issue Oct 27, 2016 · 2 comments

Comments

@bkniffler
Copy link
Collaborator

Hey,
I think https://github.com/thejameskyle/babel-react-optimize would make a great addition! Would you consider adding it?

Adding it as a devDep and tweaking the babel query should suffice

            presets: [
              // JSX
              'react',
              // All the latest JS goodies, except for ES6 modules which
              // webpack has native support for and uses in the tree shaking
              // process.
              // TODO: When babel-preset-latest-minimal has stabilised use it
              // for our node targets so that only the missing features for
              // our respective node version will be transpiled.
              ['latest', { es2015: { modules: false } }],
              isProd('react-optimize'),
            ],
@ctrlplusb
Copy link
Owner

I would be okay with it, but having a quick browse through the issues list it appears there are some edge cases. I would prefer that we didn't risk any headaches. :)

@bkniffler
Copy link
Collaborator Author

Seems reasonable!

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

No branches or pull requests

2 participants