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

22 lines
475 B
TypeScript

//// [tests/cases/compiler/reExportGlobalDeclaration3.ts] ////
//// [file1.d.ts]
declare namespace NS1 {
export var foo: number;
}
declare namespace NS2 {
export var foo: number;
}
//// [file2.ts]
export {NS1, NS1 as NNS1};
export {NS2, NS2 as NNS2};
export {NS1 as NNNS1};
export {NS2 as NNNS2};
//// [file2.js]
"use strict";
exports.__esModule = true;
exports.NNNS2 = exports.NNNS1 = exports.NNS2 = exports.NS2 = exports.NNS1 = exports.NS1 = void 0;