dillon1000/react

Commit

[Fresh] Throw in prod and change annotation (#15939)

* Disable React Refresh Babel transform in prod

* Throw early if React Refresh runtime is imported in production

* @hot reset -> @refresh reset
Browse files
Changed paths3 files
First-parent comparison
M packages/react-refresh/src/ReactFreshBabelPlugin.js ModifiedM packages/react-refresh/src/ReactFreshRuntime.js ModifiedM packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…