Skip to content

Commit

Permalink
fix: de-default typescript import
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 25, 2024
1 parent ad36d7b commit c518477
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/vue-dts.ts
Expand Up @@ -103,7 +103,9 @@ async function emitVueTscV1(vfs: Map<string, string>, srcFiles: string[]) {
}

async function emitVueTscV2(vfs: Map<string, string>, srcFiles: string[]) {
const ts: typeof import("typescript") = await import("typescript");
const ts: typeof import("typescript") = await import("typescript").then(
(r) => r.default || r,
);
const vueTsc: typeof import("vue-tsc") = await import("vue-tsc");
const requireFromVueTsc = createRequire(await resolveModule("vue-tsc"));
const vueLanguageCore: typeof import("@vue/language-core") =
Expand Down

0 comments on commit c518477

Please sign in to comment.