From 98e420ebdd9306aaae1c2a36cb9f9fce7aec5948 Mon Sep 17 00:00:00 2001 From: abchiyi <47715417+abchiyi@users.noreply.github.com> Date: Sat, 3 Dec 2022 21:22:04 +0800 Subject: [PATCH] Fix TS1444 error When both "preserveValueImports" and "isolatedModules" are enabled, you must import using type-only imports. --- src/vue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vue.ts b/src/vue.ts index 2358af4..5346f1e 100644 --- a/src/vue.ts +++ b/src/vue.ts @@ -1,4 +1,4 @@ -import { ref, h, computed, defineComponent, Plugin, watch } from 'vue' +import { ref, h, computed, defineComponent, type Plugin, watch } from 'vue' import hljs from 'highlight.js/lib/core' import { escapeHtml } from './lib/utils'