mirror of https://github.com/immich-app/immich.git
fix: bundle CLI with Vite (#6893)
* fix: bundle CLI with Vite * bundle dependencies as well * remove unused dependenciespull/6888/head
parent
329659b2fb
commit
b4c211cad1
File diff suppressed because it is too large
Load Diff
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"exclude": ["dist", "node_modules", "upload", "test", "**/*spec.ts"]
|
|
||||||
}
|
|
||||||
@ -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…
Reference in New Issue