c6c2c4c8d5
* 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
19 lines
349 B
TypeScript
19 lines
349 B
TypeScript
//// [tests/cases/compiler/allowSyntheticDefaultImports1.ts] ////
|
|
|
|
//// [a.ts]
|
|
import Namespace from "./b";
|
|
export var x = new Namespace.Foo();
|
|
|
|
//// [b.d.ts]
|
|
export class Foo {
|
|
member: string;
|
|
}
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.x = void 0;
|
|
var b_1 = require("./b");
|
|
exports.x = new b_1["default"].Foo();
|