-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup config correct? #5718
Comments
Looks like something happened between |
I walked through the build and while React wasn't included, but there was duplicate code that I was not expecting. Some of it is related to I'll have to do some more digging to figure out what is going on with that. |
Alright, so we're getting duplicate code in the |
One final comment for the night. I made a couple changes to the repo and got the UMD down to ~127 kB. These include making the // rollup.config.js
resolve({
customResolveOptions: {
moduleDirectory: ['../../node_modules', '../']
}
}), We also might need to update the |
BTW, 4.2.1 was a bad build, hence 4.2.2. prop-types wasn't included in that build and wasn't imported as a global, so the byte savings came at the cost of it being non-functional 😄 ~130k is in line with the previous versions, so it looks like the hoisting should fix this up. |
Just grabbed the UMD build for react-router-dom and its 184kb ... looks like React is being bundled into it?
https://unpkg.com/react-router-dom@4.2.2/umd/react-router-dom.js
I would expect this file do bundle all deps, including
react-router
and its deps, but not bundle upreact
.The text was updated successfully, but these errors were encountered: