babel-plugin-closure-elimination
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -83,3 +83,3 @@ 'use strict'; | ||
console.error(label); | ||
console.error(require('babel-generator')(rootNode).code); | ||
console.error(require('babel-generator').default(rootNode).code); | ||
console.error('\n=======================================================\n'); | ||
@@ -161,2 +161,5 @@ } | ||
replacement = t.functionDeclaration(_uid, node.params, normalizeFunctionBody(node.body)); | ||
if (node.id && node.id.name) { | ||
scope.rename(node.id.name, _uid.name); | ||
} | ||
replacement.loc = node.loc; | ||
@@ -163,0 +166,0 @@ replacement.generator = node.generator; |
{ | ||
"name": "babel-plugin-closure-elimination", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Removes closures from your JavaScript in the name of performance.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -120,2 +120,5 @@ import 'babel-polyfill'; | ||
); | ||
if(node.id && node.id.name) { | ||
scope.rename(node.id.name, uid.name); | ||
} | ||
replacement.loc = node.loc; | ||
@@ -148,5 +151,5 @@ replacement.generator = node.generator; | ||
console.error(label); | ||
console.error(require('babel-generator')(rootNode).code); | ||
console.error(require('babel-generator').default(rootNode).code); | ||
console.error('\n=======================================================\n'); | ||
} | ||
} |
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
14136
302