nodes/app/vite.config.ts

25 lines
456 B
TypeScript
Raw Normal View History

2024-03-06 14:01:07 +01:00
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'
import glsl from "vite-plugin-glsl";
2024-04-04 19:17:27 +02:00
import wasm from "vite-plugin-wasm";
2024-04-16 13:30:14 +02:00
import comlink from 'vite-plugin-comlink';
2024-04-18 18:39:24 +02:00
import UnoCSS from 'unocss/vite'
2024-03-06 14:01:07 +01:00
export default defineConfig({
2024-04-16 13:30:14 +02:00
plugins: [
comlink(),
2024-04-18 18:39:24 +02:00
UnoCSS(),
2024-04-16 13:30:14 +02:00
sveltekit(),
glsl(),
wasm()
],
worker: {
plugins: () => ([
comlink()
])
},
2024-03-06 14:01:07 +01:00
ssr: {
noExternal: ['three'],
}
})