Files
TypstDrive/vite.config.ts
T
2026-04-04 23:22:30 -04:00

25 lines
549 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import wasm from 'vite-plugin-wasm';
import topLevelAwait from 'vite-plugin-top-level-await';
export default defineConfig({
plugins: [tailwindcss(), sveltekit(), wasm(), topLevelAwait()],
server: {
proxy: {
'/api': 'http://127.0.0.1:3000',
'/yjs': {
target: 'ws://127.0.0.1:3000',
ws: true,
},
},
},
optimizeDeps: {
exclude: ['codemirror-lang-typst']
},
build: {
target: 'esnext'
}
});