2024-11-02 17:21:04 +01:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
|
import UnoCSS from 'unocss/vite';
|
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import comlink from 'vite-plugin-comlink';
|
2024-03-06 14:01:07 +01:00
|
|
|
import glsl from "vite-plugin-glsl";
|
2024-04-04 19:17:27 +02:00
|
|
|
import wasm from "vite-plugin-wasm";
|
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'],
|
|
|
|
}
|
|
|
|
})
|