You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are targeting ES 6 compliant, modern browsers (such as latest version of Chrome, Safari 10, etc.) and would like to leverage this to reduce the size of React build (using the latest version of React).
Is this already something that is possible, if so how? Are there other options to reduce the size of React (such as setting node environment variable to production)?
The text was updated successfully, but these errors were encountered:
You can change the Babel plugins that we use to compile React to fit your needs (then npm run build yourself). However, as you can see we actually use ES6 features quite selectively so I'm not sure if you'll see a huge difference.
You might also be interested in #6351 (comment). Feel free to comment or reopen if there's anything unclear.
Are there other options to reduce the size of React (such as setting node environment variable to production)?
With CommonJS, if you envify process.env.NODE_ENV to be "production" and then uglify it, you will get a smaller build than if you don’t. It’s the same one we ship as dist/react.min.js and from CDN.
We are targeting ES 6 compliant, modern browsers (such as latest version of Chrome, Safari 10, etc.) and would like to leverage this to reduce the size of React build (using the latest version of React).
Is this already something that is possible, if so how? Are there other options to reduce the size of React (such as setting node environment variable to production)?
The text was updated successfully, but these errors were encountered: