@babel/helper-module-transforms
Advanced tools
Comparing version 8.0.0-alpha.4 to 8.0.0-alpha.5
@@ -1115,3 +1115,4 @@ import assert from 'assert'; | ||
computed: template.expression`EXPORTS["NAME"] = VALUE`, | ||
default: template.expression`EXPORTS.NAME = VALUE` | ||
default: template.expression`EXPORTS.NAME = VALUE`, | ||
define: template.expression`Object.defineProperty(EXPORTS, "NAME", { enumerable:true, value: void 0, writable: true })["NAME"] = VALUE` | ||
}; | ||
@@ -1129,7 +1130,9 @@ function buildInitStatement(metadata, exportNames, initExpr) { | ||
}; | ||
if (exportName === "__proto__") { | ||
return InitTemplate.define(params); | ||
} | ||
if (stringSpecifiers.has(exportName)) { | ||
return InitTemplate.computed(params); | ||
} else { | ||
return InitTemplate.default(params); | ||
} | ||
return InitTemplate.default(params); | ||
}, initExpr)); | ||
@@ -1136,0 +1139,0 @@ } |
{ | ||
"name": "@babel/helper-module-transforms", | ||
"version": "8.0.0-alpha.4", | ||
"version": "8.0.0-alpha.5", | ||
"description": "Babel helper functions for implementing ES6 module transformations", | ||
@@ -18,14 +18,14 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/helper-environment-visitor": "^8.0.0-alpha.4", | ||
"@babel/helper-module-imports": "^8.0.0-alpha.4", | ||
"@babel/helper-simple-access": "^8.0.0-alpha.4", | ||
"@babel/helper-split-export-declaration": "^8.0.0-alpha.4", | ||
"@babel/helper-validator-identifier": "^8.0.0-alpha.4" | ||
"@babel/helper-environment-visitor": "^8.0.0-alpha.5", | ||
"@babel/helper-module-imports": "^8.0.0-alpha.5", | ||
"@babel/helper-simple-access": "^8.0.0-alpha.5", | ||
"@babel/helper-split-export-declaration": "^8.0.0-alpha.5", | ||
"@babel/helper-validator-identifier": "^8.0.0-alpha.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^8.0.0-alpha.4", | ||
"@babel/traverse": "^8.0.0-alpha.4" | ||
"@babel/core": "^8.0.0-alpha.5", | ||
"@babel/traverse": "^8.0.0-alpha.5" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^8.0.0-alpha.4" | ||
"@babel/core": "^8.0.0-alpha.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
154608
1130