metro-transform-plugins
Advanced tools
Comparing version 0.81.0-alpha.2 to 0.81.0
{ | ||
"name": "metro-transform-plugins", | ||
"version": "0.81.0-alpha.2", | ||
"version": "0.81.0", | ||
"description": "🚇 Transform plugins for Metro.", | ||
@@ -30,3 +30,3 @@ "main": "src/index.js", | ||
"babel-plugin-tester": "^6.0.1", | ||
"metro": "0.81.0-alpha.2" | ||
"metro": "0.81.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
@@ -36,3 +36,3 @@ "use strict"; | ||
function isGlobalOrFlowDeclared(binding) { | ||
return isGlobal(binding) || isFlowDeclared(binding); | ||
return !binding || isFlowDeclared(binding); | ||
} | ||
@@ -39,0 +39,0 @@ const isLeftHandSideOfAssignmentExpression = (node, parent) => |
@@ -90,5 +90,2 @@ "use strict"; | ||
); | ||
function isGlobal(binding) { | ||
return !binding; | ||
} | ||
const isRequireCall = (node, dependencyId, scope) => | ||
@@ -126,3 +123,3 @@ isCallExpression(node) && | ||
const isToplevelBinding = (binding, isWrappedModule) => | ||
isGlobal(binding) || | ||
!binding || | ||
!binding.scope.parent || | ||
@@ -129,0 +126,0 @@ (isWrappedModule && !binding.scope.parent.parent); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
94461
1273