react.production.min.js is bundle with the library
See original GitHub issueI’m testing out the component library in a project and when I run Webpack Analyzer, I see the the library itself has React bundled with it. I thought this was taken care of my putting it in the peerDependencies
? I had also tried using the external
key in the rollup config.

Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Optimizing Performance - React
Remember that only React files ending with .production.min.js are suitable for ... Finally, the resulting bundle is piped to terser for mangling (read...
Read more >React Js - how to keep bundle.min.js small? - Stack Overflow
CommonsChunkPlugin will allow you to bundle libraries (or other chunks per your liking) to separate build files.
Read more >Analyze your React app's bundle size and reduce it using ...
An app's bundle size is the amount of JavaScript a user will have to download to load your app. The bigger the bundle...
Read more >Two Quick Ways To Reduce React App's Size In Production
If you are building a React + Redux App that has Webpack, then you might have noticed that the size of the final...
Read more >How to package your React Component for distribution via NPM
I wrote a React component, transpiling using Babel, bundling and building using Webpack. I wanted to use it in another application via NPM....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pneedham-mdsol Sure
@jeremypurser could you kindly share that Webpack config resolver? I believe I’m running into a similar issue (duplicate versions of React).