mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
32 lines
650 B
TypeScript
32 lines
650 B
TypeScript
import path from 'node:path'
|
|
import url from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
const _dirname = path.dirname(url.fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['**/__tests__/**/*.spec.[tj]s'],
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'./playground/**/*.*',
|
|
'./playground-temp/**/*.*',
|
|
],
|
|
testTimeout: 20000,
|
|
isolate: false,
|
|
},
|
|
esbuild: {
|
|
target: 'node18',
|
|
},
|
|
publicDir: false,
|
|
resolve: {
|
|
alias: {
|
|
'vite/runtime': path.resolve(
|
|
_dirname,
|
|
'./packages/vite/src/runtime/index.ts',
|
|
),
|
|
},
|
|
},
|
|
})
|