es6-module-transpiler
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -251,3 +251,3 @@ /* jshint node:true, undef:true, unused:true */ | ||
Rewriter.prototype.assertImportIsNotReassigned = function(mod, identifierPath) { | ||
if (!n.Identifier.check(identifierPath.node)) { | ||
if (!n.Identifier.check(identifierPath.node) || !mod.imports.findDeclarationForReference(identifierPath)) { | ||
return; | ||
@@ -259,3 +259,3 @@ } | ||
var declarationScope = identifierPath.scope.lookup(name); | ||
if (declarationScope) { | ||
if (declarationScope && declarationScope.isGlobal) { | ||
var declarationPaths = declarationScope.getBindings()[name]; | ||
@@ -262,0 +262,0 @@ assert.ok( |
{ | ||
"name": "es6-module-transpiler", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "es6-module-transpiler is an experimental compiler that allows you to write your JavaScript using a subset of the current ES6 module syntax, and compile it into various formats.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://square.github.com/es6-module-transpiler", |
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
89858