[email protected] is missing dependency prop-types
Looks like it got removed in bff4af58fe9aa27dde023adb81e45b38142cb0b2.
I think it was removed in 6615b9e7bc7aaaf3878252b2aeda652cae9c1a22 when @TrySound moved everything in node_modules (our deps) out of our bundles. We still need it in our builds, but it should be tree-shaken out of production builds because all our usage of PropTypes is behind the __DEV__ flag. I will double check.
@mgroenhoff I'm curious, which build are you using?
Well imports cannot be treeshaken. So prop-types package should always be in deps if you use it.
@mjackson I am building a bundle using Webpack and it imports esm/react-router.js (it follows the module property from package.json) which has the import statement in the top of the file. Webpack fails to find this module so it errors.
Yep, Rollup can tree shake/DCE the initial import statement, but Webpack cannot. That would happen with terser/ugilfy/babel-minify as a DCE step.
Just published the fix in 4.4.0-beta.6