@babel/preset-react
Advanced tools
Comparing version 7.13.13 to 7.22.5
@@ -34,3 +34,2 @@ 'use strict'; | ||
} = options; | ||
if (runtime === "classic") { | ||
@@ -40,3 +39,2 @@ pragma = pragma || "React.createElement"; | ||
} | ||
const development = !!options.development; | ||
@@ -57,3 +55,3 @@ return { | ||
var index = helperPluginUtils.declare((api, opts) => { | ||
var index = helperPluginUtils.declarePreset((api, opts) => { | ||
api.assertVersion(7); | ||
@@ -70,3 +68,3 @@ const { | ||
return { | ||
plugins: [[development ? transformReactJSXDevelopment__default['default'] : transformReactJSX__default['default'], { | ||
plugins: [[development ? transformReactJSXDevelopment__default["default"] : transformReactJSX__default["default"], { | ||
importSource, | ||
@@ -80,7 +78,7 @@ pragma, | ||
useSpread: opts.useSpread | ||
}], transformReactDisplayName__default['default'], pure !== false && transformReactPure__default['default']].filter(Boolean) | ||
}], transformReactDisplayName__default["default"], pure !== false && transformReactPure__default["default"]].filter(Boolean) | ||
}; | ||
}); | ||
exports.default = index; | ||
exports["default"] = index; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/preset-react", | ||
"version": "7.13.13", | ||
"version": "7.22.5", | ||
"description": "Babel preset for all React plugins.", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"homepage": "https://babel.dev/docs/en/next/babel-preset-react", | ||
@@ -17,10 +17,10 @@ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20react%22+is%3Aopen", | ||
}, | ||
"main": "lib/index.js", | ||
"main": "./lib/index.js", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.13.0", | ||
"@babel/helper-validator-option": "^7.12.17", | ||
"@babel/plugin-transform-react-display-name": "^7.12.13", | ||
"@babel/plugin-transform-react-jsx": "^7.13.12", | ||
"@babel/plugin-transform-react-jsx-development": "^7.12.17", | ||
"@babel/plugin-transform-react-pure-annotations": "^7.12.1" | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-validator-option": "^7.22.5", | ||
"@babel/plugin-transform-react-display-name": "^7.22.5", | ||
"@babel/plugin-transform-react-jsx": "^7.22.5", | ||
"@babel/plugin-transform-react-jsx-development": "^7.22.5", | ||
"@babel/plugin-transform-react-pure-annotations": "^7.22.5" | ||
}, | ||
@@ -31,5 +31,9 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.13.13", | ||
"@babel/helper-plugin-test-runner": "7.13.10" | ||
} | ||
"@babel/core": "^7.22.5", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
}, | ||
"engines": { | ||
"node": ">=6.9.0" | ||
}, | ||
"type": "commonjs" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17715
7
112
2
0