Socket
Socket
Sign inDemoInstall

metro-react-native-babel-preset

Package Overview
Dependencies
39
Maintainers
2
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.62.0 to 0.63.0

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc