We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import type
1 parent e850305 commit 9cce3f9Copy full SHA for 9cce3f9
playground/ssr-vue/src/components/ImportType.vue
@@ -3,6 +3,9 @@
3
</template>
4
5
<script setup lang="ts">
6
-import { Foo } from '@vitejs/test-dep-import-type/deep'
+// FIXME: @vitejs/test-dep-import-type/deep is a type only file
7
+// So currently it needs to be imported with `import type`
8
+// https://github.com/vitejs/vite-plugin-vue/issues/24
9
+import type { Foo } from '@vitejs/test-dep-import-type/deep'
10
const msg: Foo = {}
11
</script>
0 commit comments