mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 17:09:50 +03:00
26 lines
459 B
TypeScript
26 lines
459 B
TypeScript
import { defineConfig, UserConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: { src: '/src' },
|
|
tsconfigPaths: true,
|
|
},
|
|
build: {
|
|
rolldownOptions: {
|
|
input: 'src/index.ts',
|
|
output: {
|
|
dir: 'dist',
|
|
},
|
|
},
|
|
ssr: true,
|
|
},
|
|
ssr: {
|
|
// bundle everything except for Node built-ins
|
|
noExternal: /^(?!node:).*$/,
|
|
},
|
|
test: {
|
|
name: 'cli:unit',
|
|
globals: true,
|
|
},
|
|
} as UserConfig);
|