2022-05-19 10:21:26 +00:00
|
|
|
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('src/server'),
|
|
|
|
sfc: resolve('src/sfc'),
|
|
|
|
shared: resolve('src/shared'),
|
|
|
|
web: resolve('src/platforms/web'),
|
2022-05-24 13:49:16 +00:00
|
|
|
vca: resolve('src/composition-api'),
|
2022-05-19 10:21:26 +00:00
|
|
|
vue: resolve('src/platforms/web/entry-runtime-with-compiler')
|
|
|
|
}
|
|
|
|
},
|
2022-05-24 00:55:11 +00:00
|
|
|
define: {
|
|
|
|
__DEV__: true
|
|
|
|
},
|
2022-05-19 10:21:26 +00:00
|
|
|
test: {
|
|
|
|
globals: true,
|
|
|
|
environment: 'jsdom',
|
|
|
|
setupFiles: resolve('test/vitest.setup.ts')
|
|
|
|
}
|
|
|
|
})
|