mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
b4c211cad1
* fix: bundle CLI with Vite * bundle dependencies as well * remove unused dependencies
17 lines
304 B
TypeScript
17 lines
304 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
input: 'src/index.ts',
|
|
output: {
|
|
dir: 'dist',
|
|
},
|
|
},
|
|
ssr: true,
|
|
},
|
|
ssr: {
|
|
// bundle everything except for Node built-ins
|
|
noExternal: /^(?!node:).*$/,
|
|
},
|
|
});
|