Socket
Socket
Sign inDemoInstall

metro-react-native-babel-preset

Package Overview
Dependencies
Maintainers
1
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.43.2 to 0.43.3

5

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

@@ -47,6 +47,7 @@ "main": "src/index.js",

"@babel/plugin-transform-template-literals": "7.0.0-beta.54",
"@babel/plugin-transform-typescript": "7.0.0-beta.54",
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.54",
"@babel/template": "7.0.0-beta.54",
"metro-babel7-plugin-react-transform": "0.43.2"
"metro-babel7-plugin-react-transform": "0.43.3"
}
}

14

src/configs/main.js

@@ -12,2 +12,6 @@ /**

function isTypeScriptSource(fileName) {
return !!fileName && (fileName.endsWith('.ts') || fileName.endsWith('.tsx'));
}
const defaultPlugins = [

@@ -127,4 +131,12 @@ [require('@babel/plugin-proposal-optional-catch-binding')],

compact: true,
plugins: defaultPlugins.concat(extraPlugins) };
plugins: defaultPlugins.concat(extraPlugins),
overrides: [
{
test: isTypeScriptSource,
plugins: [
[require('@babel/plugin-transform-typescript'), { isTSX: true }]] }] };
};

@@ -131,0 +143,0 @@

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