- Add vite-plugin-wasm for Photon WASM support - Configure worker format and build target - Add photon, jszip, lucide-svelte - Add tailwindcss forms/typography plugins Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
397 B
TypeScript
19 lines
397 B
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import wasm from 'vite-plugin-wasm';
|
|
|
|
export default defineConfig({
|
|
plugins: [wasm(), tailwindcss(), sveltekit()],
|
|
optimizeDeps: {
|
|
exclude: ['@silvia-odwyer/photon']
|
|
},
|
|
build: {
|
|
target: 'esnext'
|
|
},
|
|
worker: {
|
|
format: 'es',
|
|
plugins: () => [wasm()]
|
|
}
|
|
});
|