mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-11-14 11:57:36 +08:00
33 lines
916 B
TypeScript
33 lines
916 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { checker } from 'vite-plugin-checker'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
svelte(),
|
|
tsconfigPaths(),
|
|
checker({ typescript: true }),
|
|
],
|
|
base: '/@warpgate',
|
|
build: {
|
|
sourcemap: true,
|
|
manifest: true,
|
|
commonjsOptions: {
|
|
include: [
|
|
'src/gateway/lib/api-client/dist/*.js',
|
|
'src/admin/lib/api-client/dist/*.js',
|
|
'**/*.js',
|
|
],
|
|
transformMixedEsModules: true,
|
|
},
|
|
rollupOptions: {
|
|
input: {
|
|
admin: 'src/admin/index.html',
|
|
gateway: 'src/gateway/index.html',
|
|
embed: 'src/embed/index.ts',
|
|
},
|
|
},
|
|
},
|
|
})
|