TypeScript/tests/baselines/reference/exportBinding.js
Wesley Wigham c6c2c4c8d5
Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar (#37093)
* Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar

* Copy hoisted identifiers so they do not create sourcemaps

* Accept updated baselines
2020-02-28 13:25:28 -08:00

42 lines
736 B
TypeScript

//// [tests/cases/conformance/es6/modules/exportBinding.ts] ////
//// [exportConsts.ts]
export { x }
export { x as xx }
export default x;
const x = 'x'
export { Y as Z }
class Y {}
//// [exportVars.ts]
export { y }
export { y as yy }
export default y;
var y = 'y'
//// [exportConsts.js]
"use strict";
exports.__esModule = true;
exports.Z = exports.xx = exports.x = void 0;
exports["default"] = x;
var x = 'x';
exports.x = x;
exports.xx = x;
var Y = /** @class */ (function () {
function Y() {
}
return Y;
}());
exports.Z = Y;
//// [exportVars.js]
"use strict";
exports.__esModule = true;
exports.yy = exports.y = void 0;
exports["default"] = y;
var y = 'y';
exports.y = y;
exports.yy = y;