加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vitest.config.ts 764 Bytes
一键复制 编辑 原始数据 按行查看 历史
尤雨溪 提交于 2022-06-20 15:46 . feat(sfc): css v-bind
import { resolve as _resolve } from 'path'
import { defineConfig } from 'vitest/config'
const resolve = (p: string) => _resolve(__dirname, p)
export default defineConfig({
resolve: {
alias: {
compiler: resolve('src/compiler'),
core: resolve('src/core'),
server: resolve('packages/server-renderer/src'),
sfc: resolve('packages/compiler-sfc/src'),
shared: resolve('src/shared'),
web: resolve('src/platforms/web'),
v3: resolve('src/v3'),
vue: resolve('src/platforms/web/entry-runtime-with-compiler'),
types: resolve('src/types')
}
},
define: {
__DEV__: true,
__TEST__: true
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: resolve('test/vitest.setup.ts')
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化