Socket
Socket
Sign inDemoInstall

metro-react-native-babel-preset

Package Overview
Dependencies
Maintainers
2
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-react-native-babel-preset - npm Package Compare versions

Comparing version 0.66.0 to 0.66.1

4

package.json
{
"name": "metro-react-native-babel-preset",
"version": "0.66.0",
"version": "0.66.1",
"description": "Babel preset for React Native applications",

@@ -21,3 +21,3 @@ "main": "src/index.js",

"dependencies": {
"@babel/core": "^7.0.0",
"@babel/core": "^7.14.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",

@@ -24,0 +24,0 @@ "@babel/plugin-proposal-export-default-from": "^7.0.0",

@@ -27,4 +27,2 @@ /**

"Modal",
"Picker",
"PickerIOS",
"Pressable",

@@ -31,0 +29,0 @@ "ProgressBarAndroid",

@@ -25,3 +25,2 @@ /**

[require("@babel/plugin-syntax-flow")],
[require("@babel/plugin-proposal-optional-catch-binding")],
[require("@babel/plugin-transform-block-scoping")],

@@ -36,10 +35,5 @@ [

[require("@babel/plugin-syntax-export-default-from")],
...passthroughSyntaxPlugins,
[require("@babel/plugin-transform-destructuring")],
[require("@babel/plugin-transform-function-name")],
[require("@babel/plugin-transform-literals")],
[require("@babel/plugin-transform-parameters")]
...passthroughSyntaxPlugins
];
const defaultPluginsAfterRegenerator = [
[require("@babel/plugin-transform-sticky-regex")],
[require("@babel/plugin-transform-unicode-regex")]

@@ -51,4 +45,6 @@ ];

(options && options.unstable_transformProfile) || "default";
const isHermesStable = transformProfile === "hermes-stable";
const isHermesCanary = transformProfile === "hermes-canary";
const isHermesStable = transformProfile === "hermes-stable"; // Temporarily treating canary profile as "ES5 Hermes".
// TODO(jsx): Restore check for transformProfile === 'hermes-canary'
const isHermesCanary = false;
const isHermes = isHermesStable || isHermesCanary;

@@ -93,4 +89,18 @@ const isNull = src == null;

extraPlugins.push([require("@babel/plugin-transform-computed-properties")]);
extraPlugins.push([require("@babel/plugin-transform-parameters")]);
extraPlugins.push([
require("@babel/plugin-transform-shorthand-properties")
]);
extraPlugins.push([
require("@babel/plugin-proposal-optional-catch-binding")
]);
extraPlugins.push([require("@babel/plugin-transform-function-name")]);
extraPlugins.push([require("@babel/plugin-transform-literals")]);
extraPlugins.push([require("@babel/plugin-transform-sticky-regex")]);
}
if (!isHermesCanary) {
extraPlugins.push([require("@babel/plugin-transform-destructuring")]);
}
if (!isHermes && (isNull || hasClass || src.indexOf("...") !== -1)) {

@@ -166,8 +176,2 @@ extraPlugins.push(

if (!isHermes) {
extraPlugins.push([
require("@babel/plugin-transform-shorthand-properties")
]);
}
if (options && options.dev && !options.useTransformReactJSXExperimental) {

@@ -174,0 +178,0 @@ extraPlugins.push([require("@babel/plugin-transform-react-jsx-source")]);

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc