miru/vite.config.ts
ThaUnknown 180ca53ac5
feat: license info
fix: thread tab and comments pagination
2025-05-22 16:05:53 +02:00

28 lines
598 B
TypeScript

import { resolve } from 'node:path'
import { sveltekit } from '@sveltejs/kit/vite'
import license from 'rollup-plugin-license'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
sveltekit(),
license({
thirdParty: {
allow: '(MIT OR Apache-2.0 OR ISC OR BSD-3-Clause OR BSD-2-Clause)',
output: resolve(__dirname, './build/LICENSE.txt'),
includeSelf: true
}
})
],
server: { port: 7344 },
build: {
target: 'esnext'
},
ssr: {
target: 'webworker'
},
optimizeDeps: {
exclude: ['anitomyscript']
}
})