es6-module-transpiler-amd-formatter
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -184,3 +184,4 @@ /* jshint node:true, undef:true, unused:true */ | ||
var node = nodePath.node, | ||
declaration = node.declaration; | ||
declaration = node.declaration, | ||
specifiers = node.specifiers; | ||
@@ -202,3 +203,7 @@ if (n.FunctionDeclaration.check(declaration)) { | ||
} else { | ||
return Replacement.removes(nodePath); | ||
return Replacement.swaps(nodePath, [].concat(specifiers.map(function (specifier) { | ||
return b.expressionStatement( | ||
b.callExpression(b.identifier('__es6_export__'), [b.literal((specifier.name || specifier.id).name), specifier.id]) | ||
); | ||
}))); | ||
} | ||
@@ -205,0 +210,0 @@ }; |
{ | ||
"name": "es6-module-transpiler-amd-formatter", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "ES6 Module Transpiler Extension to Output AMD define() Format.", | ||
@@ -5,0 +5,0 @@ "author": "Caridy Patino <caridy@gmail.com>", |
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
19703
430