2022-04-15 15:19:05 +00:00
|
|
|
import { resolve } from 'node:path'
|
2022-02-16 18:07:33 +00:00
|
|
|
import { defineConfig } from 'vite'
|
2022-04-12 18:36:39 +00:00
|
|
|
import { isWindows } from 'std-env'
|
2022-02-16 18:07:33 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
alias: {
|
2022-03-14 13:36:32 +00:00
|
|
|
'#app': resolve('./packages/nuxt3/src/app/index.ts'),
|
2022-02-16 18:07:33 +00:00
|
|
|
'@nuxt/test-utils': resolve('./packages/test-utils/src/index.ts')
|
2022-03-17 22:17:59 +00:00
|
|
|
},
|
|
|
|
esbuild: {
|
|
|
|
tsconfigRaw: '{}'
|
2022-04-07 19:15:30 +00:00
|
|
|
},
|
|
|
|
test: {
|
2022-04-12 18:36:39 +00:00
|
|
|
testTimeout: isWindows ? 60000 : 10000
|
2022-02-16 18:07:33 +00:00
|
|
|
}
|
|
|
|
})
|