Skip to content

Commit 10125e4

Browse files
authored
Fix __importDefault when used on typescript libraries (#51474)
1 parent 9eb8bd6 commit 10125e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/tsserverlibrary/tsserverlibrary.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from "./_namespaces/ts";
1+
import * as ts from "./_namespaces/ts";
2+
export = ts;

Diff for: src/typescript/typescript.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ if (typeof console !== "undefined") {
1515
};
1616
}
1717

18-
export * from "./_namespaces/ts";
18+
import * as ts from "./_namespaces/ts";
19+
export = ts;

0 commit comments

Comments
 (0)