react/scripts/babel
Luna Ruan 7d9e17a982
[DevTools] Add Pragma to Only Run Tests if Version Requirement Satisfied (#24533)
This PR:

Adds a transform-react-version-pragma that transforms // @reactVersion SEMVER_VERSION into _test_react_version(...) and _test_react_version_focus(...) that lets us only run a test if it satisfies the right react version.
Adds _test_react_version and _test_react_version_focus to the devtools setupEnv file
Add a devtools preprocessor file for devtools specific plugins
2022-05-11 12:01:05 -04:00
..
__tests__ Add comment support to `@gate` pragma (#21881) 2021-07-14 10:36:24 -07:00
transform-object-assign.js Fix file path separator compatibility in scripts/babel (#24318) 2022-04-08 19:47:31 +01:00
transform-prevent-infinite-loops.js [Scheduler] Prevent event log from growing unbounded (#16781) 2019-09-13 15:50:25 -07:00
transform-react-version-pragma.js [DevTools] Add Pragma to Only Run Tests if Version Requirement Satisfied (#24533) 2022-05-11 12:01:05 -04:00
transform-replace-console-calls.js Use console directly instead of warning() modules (#17599) 2019-12-14 18:09:25 +00:00
transform-test-gate-pragma.js Add comment support to `@gate` pragma (#21881) 2021-07-14 10:36:24 -07:00