mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
29 lines
729 B
TypeScript
29 lines
729 B
TypeScript
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')
|
|
}
|
|
},
|
|
define: {
|
|
__DEV__: true,
|
|
__TEST__: true
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: resolve('test/vitest.setup.ts')
|
|
}
|
|
})
|