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
Notice how require("prop-types") shouldn't be there. We probably require it and then don’t use it in PROD. We need some mechanism to express a module is pure from side effects, and have Rollup DCE this require.
The text was updated successfully, but these errors were encountered:
Preliminary conclusion: we decided that we’d write a Babel plugin that removes require/imports that are not referenced and fall into a whitelist of known modules without side effects. This seems easier than hooking into Rollup.
I see
ReactDOMFiber-prod
starts withNotice how
require("prop-types")
shouldn't be there. We probablyrequire
it and then don’t use it in PROD. We need some mechanism to express a module is pure from side effects, and have Rollup DCE thisrequire
.The text was updated successfully, but these errors were encountered: