TypeScript/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.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

36 lines
767 B
TypeScript

//// [internalAliasVarInsideLocalModuleWithoutExport.ts]
export module a {
export var x = 10;
}
export module c {
import b = a.x;
export var bVal = b;
}
//// [internalAliasVarInsideLocalModuleWithoutExport.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.c = exports.a = void 0;
var a;
(function (a) {
a.x = 10;
})(a = exports.a || (exports.a = {}));
var c;
(function (c) {
var b = a.x;
c.bVal = b;
})(c = exports.c || (exports.c = {}));
});
//// [internalAliasVarInsideLocalModuleWithoutExport.d.ts]
export declare module a {
var x: number;
}
export declare module c {
var bVal: number;
}