Socket
Socket
Sign inDemoInstall

metro-react-native-babel-preset

Package Overview
Dependencies
37
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.53.0 to 0.53.1

src/configs/lazy-imports.js

4

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

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

"@babel/template": "^7.0.0",
"metro-babel7-plugin-react-transform": "0.53.0",
"metro-babel7-plugin-react-transform": "0.53.1",
"react-transform-hmr": "^1.0.4"

@@ -58,0 +58,0 @@ },

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

const lazyImports = require("./lazy-imports");
function isTypeScriptSource(fileName) {

@@ -138,3 +140,6 @@ return !!fileName && fileName.endsWith(".ts");

// prevent "use strict" injections
lazy: !!(options && options.lazyImportExportTransform),
lazy:
options && options.lazyImportExportTransform != null
? options.lazyImportExportTransform
: importSpecifier => lazyImports.has(importSpecifier),
allowTopLevelThis: true // dont rewrite global `this` -> `undefined`

@@ -141,0 +146,0 @@ }

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