mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
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
10 lines
203 B
JavaScript
10 lines
203 B
JavaScript
'use strict';
|
|
|
|
const pathToTransformReactVersionPragma = require.resolve(
|
|
'../../babel/transform-react-version-pragma'
|
|
);
|
|
|
|
module.exports = {
|
|
devtoolsPlugins: [pathToTransformReactVersionPragma],
|
|
};
|