dillon1000/react
Commit
Browse files [DevTools] Fix moduleNameMapper Order in DevTools Config #24602)
We need the regression config moduleNameMapper to come before the current moduleNameMapper so when it tries to map "/^react-dom\/([^/]+)$/ it doesn't get confused. The reason is because order in which the mappings are defined matters. Patterns are checked one by one until one fits, and the most specific rule should be listed first.
Changed paths2 files
First-parent comparisonpackages/react-devtools-shared/src/__tests__/profilingCache-test.js ModifiedM scripts/jest/config.build-devtools.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…