mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
f684d4cd5c
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com> Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com> Co-authored-by: 翠 / green <green@sapphi.red> Co-authored-by: Jun Shindo <46585162+jay-es@users.noreply.github.com> Co-authored-by: Greg T. Wallace <greg@gregtwallace.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Caven <cavenasdev@gmail.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Co-authored-by: Matyáš Racek <panstromek@seznam.cz> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
31 lines
642 B
TypeScript
31 lines
642 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,
|
|
},
|
|
esbuild: {
|
|
target: 'node18',
|
|
},
|
|
publicDir: false,
|
|
resolve: {
|
|
alias: {
|
|
'vite/module-runner': path.resolve(
|
|
_dirname,
|
|
'./packages/vite/src/module-runner/index.ts',
|
|
),
|
|
},
|
|
},
|
|
})
|