Skip to content

Commit 9cce3f9

Browse files
authored
chore: use import type for type only file import (#263)
1 parent e850305 commit 9cce3f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playground/ssr-vue/src/components/ImportType.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
</template>
44

55
<script setup lang="ts">
6-
import { Foo } from '@vitejs/test-dep-import-type/deep'
6+
// 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'
710
const msg: Foo = {}
811
</script>

0 commit comments

Comments
 (0)