@babel/plugin-transform-modules-commonjs
Advanced tools
Comparing version 7.16.7 to 7.16.8
@@ -195,2 +195,9 @@ "use strict"; | ||
path.unshiftContainer("body", headers); | ||
path.get("body").forEach(path => { | ||
if (headers.indexOf(path.node) === -1) return; | ||
if (path.isVariableDeclaration()) { | ||
path.scope.registerDeclaration(path); | ||
} | ||
}); | ||
} | ||
@@ -197,0 +204,0 @@ |
{ | ||
"name": "@babel/plugin-transform-modules-commonjs", | ||
"version": "7.16.7", | ||
"version": "7.16.8", | ||
"description": "This plugin transforms ES2015 modules to CommonJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
10055
173