Kurate/packages/ui/vite.config.ts

22 lines
453 B
TypeScript
Raw Normal View History

import { sveltekit } from '@sveltejs/kit/vite'
import type { UserConfig } from 'vite'
2023-03-23 13:28:42 +01:00
import { nodePolyfills } from 'vite-plugin-node-polyfills'
2022-11-23 17:51:51 +01:00
const config: UserConfig = {
plugins: [
sveltekit(),
2023-03-23 13:28:42 +01:00
nodePolyfills({
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],
test: {
include: ['tests/unit/**/*.{test,spec}.{js,ts}'],
},
optimizeDeps: {
include: ['buffer', 'process'],
},
}
2022-11-23 17:51:51 +01:00
export default config