metro-react-native-babel-preset
Advanced tools
Comparing version 0.62.0 to 0.63.0
{ | ||
"name": "metro-react-native-babel-preset", | ||
"version": "0.62.0", | ||
"version": "0.63.0", | ||
"description": "Babel preset for React Native applications", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -130,3 +130,2 @@ /** | ||
[require("@babel/plugin-transform-parameters")], | ||
[require("@babel/plugin-transform-shorthand-properties")], | ||
[require("@babel/plugin-transform-regenerator")], | ||
@@ -156,2 +155,5 @@ [require("@babel/plugin-transform-sticky-regex")], | ||
]; | ||
const shorthandProperties = [ | ||
require("@babel/plugin-transform-shorthand-properties") | ||
]; | ||
const objectAssign = [require("@babel/plugin-transform-object-assign")]; | ||
@@ -233,3 +235,6 @@ const objectRestSpread = [ | ||
if (isNull || src.indexOf("`") !== -1) { | ||
if ( | ||
transformProfile !== "hermes-canary" && | ||
(isNull || src.indexOf("`") !== -1) | ||
) { | ||
extraPlugins.push(es2015TemplateLiterals); | ||
@@ -270,2 +275,6 @@ } | ||
if (transformProfile !== "hermes-canary") { | ||
extraPlugins.push(shorthandProperties); | ||
} | ||
if (options && options.dev && !options.useTransformReactJSXExperimental) { | ||
@@ -272,0 +281,0 @@ extraPlugins.push(reactJsxSource); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
17389
457
4