babel-plugin-transform-global-system-wrapper
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -23,2 +23,9 @@ 'use strict'; | ||
visitor: { | ||
StringLiteral: function StringLiteral(path) { | ||
if (path.node.value === '__esModule') this.hasEsModule = true; | ||
}, | ||
MemberExpression: function MemberExpression(path) { | ||
if (path.node.property.name === '__esModule') this.hasEsModule = true; | ||
}, | ||
Program: { | ||
@@ -91,3 +98,3 @@ enter: function enter(_ref2) { | ||
var factory = (opts.esModule ? buildFactoryEs : buildFactory)({ | ||
var factory = (opts.esModule && !this.hasEsModule ? buildFactoryEs : buildFactory)({ | ||
SYSTEM_GLOBAL: systemGlobal, | ||
@@ -94,0 +101,0 @@ EXPORT_NAME: exportName, |
{ | ||
"name": "babel-plugin-transform-global-system-wrapper", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Converts global scripts into named System.registerDynamic('name', [], ...", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
13881
38
273