babel-plugin-closure-elimination
Advanced tools
Comparing version 1.1.14 to 1.1.15
@@ -94,2 +94,3 @@ 'use strict'; | ||
path.scope.crawl(); // sibling plugins may not update scope of auto-generated functions | ||
if (path.node._hoisted) { | ||
@@ -126,3 +127,2 @@ return; | ||
function getHighestCompatibleHoistedScope(path) { | ||
path.scope.crawl(); // sibling plugins may not update scope of auto-generated functions | ||
var parentScopes = getAllParentScopes(path.scope), | ||
@@ -129,0 +129,0 @@ parentBindings = path.scope.parent.getAllBindings(); |
{ | ||
"name": "babel-plugin-closure-elimination", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "Removes closures from your JavaScript in the name of performance.", | ||
@@ -39,2 +39,3 @@ "main": "lib/index.js", | ||
"babel-plugin-syntax-async-functions": "^6.3.13", | ||
"babel-plugin-transform-async-to-generator": "^6.24.1", | ||
"babel-plugin-transform-es2015-destructuring": "^6.18.0", | ||
@@ -41,0 +42,0 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", |
@@ -17,2 +17,3 @@ import 'babel-polyfill'; | ||
const {node} = path; | ||
path.scope.crawl();// sibling plugins may not update scope of auto-generated functions | ||
if (path.node._hoisted) { | ||
@@ -66,3 +67,2 @@ return; | ||
function getHighestCompatibleHoistedScope(path) { | ||
path.scope.crawl();// sibling plugins may not update scope of auto-generated functions | ||
const parentScopes = getAllParentScopes(path.scope), | ||
@@ -69,0 +69,0 @@ parentBindings = path.scope.parent.getAllBindings(); |
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
15226
17