mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: bundle CLI with Vite (#6893)
* fix: bundle CLI with Vite * bundle dependencies as well * remove unused dependencies
This commit is contained in:
parent
329659b2fb
commit
b4c211cad1
4 changed files with 178 additions and 638 deletions
17
cli/vite.config.ts
Normal file
17
cli/vite.config.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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:).*$/,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue