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

47 lines
777 B
TypeScript

//// [tests/cases/compiler/unclosedExportClause02.ts] ////
//// [t1.ts]
export var x = "x";
//// [t2.ts]
export { x, from
"./t1";
//// [t3.ts]
export { from
"./t1";
//// [t4.ts]
export { x as a from
"./t1";
//// [t5.ts]
export { x as a, from
"./t1";
//// [t1.js]
"use strict";
exports.__esModule = true;
exports.x = void 0;
exports.x = "x";
//// [t2.js]
"use strict";
exports.__esModule = true;
exports.from = exports.x = void 0;
"./t1";
//// [t3.js]
"use strict";
exports.__esModule = true;
exports.from = void 0;
"./t1";
//// [t4.js]
"use strict";
exports.__esModule = true;
exports.from = exports.a = void 0;
"./t1";
//// [t5.js]
"use strict";
exports.__esModule = true;
exports.from = exports.a = void 0;
"./t1";