babel-plugin-add-module-exports
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -10,6 +10,10 @@ // Dependencies | ||
exit: function(path){ | ||
if(path.BABEL_PLUGIN_ADD_MODULE_EXPORTS){ | ||
return | ||
} | ||
var topNodes= [] | ||
topNodes.push(babelTemplate('module.exports = Object.assign(exports.default,exports);')()) | ||
topNodes.push(babelTemplate('module.exports=Object.assign(exports.default,exports);')()) | ||
path.pushContainer('body',topNodes) | ||
path.BABEL_PLUGIN_ADD_MODULE_EXPORTS= true | ||
}, | ||
@@ -16,0 +20,0 @@ }, |
{ | ||
"name": "babel-plugin-add-module-exports", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Fix babel/babel#2212", | ||
@@ -5,0 +5,0 @@ |
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
5504
20