23 lines
409 B
TypeScript
23 lines
409 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite'
|
|
import { defineConfig } from 'vite'
|
|
import glsl from "vite-plugin-glsl";
|
|
import wasm from "vite-plugin-wasm";
|
|
import comlink from 'vite-plugin-comlink';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
comlink(),
|
|
sveltekit(),
|
|
glsl(),
|
|
wasm()
|
|
],
|
|
worker: {
|
|
plugins: () => ([
|
|
comlink()
|
|
])
|
|
},
|
|
ssr: {
|
|
noExternal: ['three'],
|
|
}
|
|
})
|