Closed Bug 1510250 Opened 6 years ago Closed 5 years ago

Remove React prop-types from the bundle in production

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

prop-types provide runtime checks in development, however are unused by React in production. We should strip them out in production to reduce bundle size (like create-react-app does):
https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types
Added upstream to Neutrino here:
https://github.com/neutrinojs/neutrino/pull/1214

And updating to the new Neutrino release including that change, here:
https://github.com/mozilla/treeherder/pull/4314
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.