Files
stackrender/vite.config.ts
T
2026-06-10 18:09:54 +01:00

23 lines
784 B
TypeScript

import { defineConfig } from 'vite'
import tailwindcss from "@tailwindcss/vite"
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
import topLevelAwait from 'vite-plugin-top-level-await';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react() , tailwindcss(), tsconfigPaths() , topLevelAwait()],
server : {
port : 3000
} ,
optimizeDeps: {
// Don't optimize these packages as they contain web workers and WASM files.
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
exclude: ['@journeyapps/wa-sqlite', '@powersync/web' , '@guanmingchiu/sqlparser-ts'],
include: ['@powersync/web > js-logger']
},
worker: {
format: 'es',
plugins: () => [ topLevelAwait()]
}
})