mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
1e98682dd3
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.