snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
27
packages/preact-query-devtools/vite.config.ts
Normal file
27
packages/preact-query-devtools/vite.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import preact from '@preact/preset-vite'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import packageJson from './package.json'
|
||||
import type { UserConfig as ViteUserConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [preact() as ViteUserConfig['plugins']],
|
||||
resolve: { conditions: ['@tanstack/custom-condition'] },
|
||||
environments: {
|
||||
ssr: { resolve: { conditions: ['@tanstack/custom-condition'] } },
|
||||
},
|
||||
test: {
|
||||
name: packageJson.name,
|
||||
dir: './src',
|
||||
watch: false,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['test-setup.ts'],
|
||||
coverage: {
|
||||
enabled: !!process.env.CI,
|
||||
provider: 'istanbul',
|
||||
include: ['src/**/*'],
|
||||
exclude: ['src/__tests__/**'],
|
||||
},
|
||||
typecheck: { enabled: true },
|
||||
restoreMocks: true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user