metro-react-native-babel-preset
Advanced tools
Comparing version 0.66.0 to 0.66.1
{ | ||
"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")]); |
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
14964
357
Updated@babel/core@^7.14.0