Kurate/packages/ui/vite.config.ts
2023-03-23 13:28:42 +01:00

22 lines
453 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite'
import type { UserConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
const config: UserConfig = {
plugins: [
sveltekit(),
nodePolyfills({
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],
test: {
include: ['tests/unit/**/*.{test,spec}.{js,ts}'],
},
optimizeDeps: {
include: ['buffer', 'process'],
},
}
export default config