## Type Support for `.vue` Imports in TS / `.vue` 文件的类型支持
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
## Customize configuration / 自定义配置
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup / 安装依赖
```sh
npm install
or pnpm install
```
### Compile and Hot-Reload for Development / 编译并启动热更新服务器
```sh
npm run dev
or pnpm run dev
```
### Type-Check, Compile and Minify for Production / 类型检查并编译
```sh
npm run build
or pnpm run build
```
### Run Unit Tests with [Vitest](https://vitest.dev/) / 单元测试
```sh
npm run test:unit
or pnpm run test:unit
```
### Lint with [ESLint](https://eslint.org/) / 使用ESLint