mirror of
https://github.com/hanzo-studio/studio-desktop.git
synced 2026-10-30 18:54:12 +00:00
* Sort imports with prettier * sort imports * Add as dev dependency * Apply separation * nit
24 lines
462 B
TypeScript
24 lines
462 B
TypeScript
import path from 'node:path';
|
|
import { defineConfig } from 'vite';
|
|
import dts from 'vite-plugin-dts';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: path.resolve(import.meta.dirname, 'src/main_types.ts'),
|
|
name: 'comfyui-electron-api',
|
|
fileName: 'index',
|
|
formats: ['es'],
|
|
},
|
|
rollupOptions: {
|
|
external: ['electron'],
|
|
},
|
|
minify: false,
|
|
},
|
|
plugins: [
|
|
dts({
|
|
rollupTypes: true,
|
|
}),
|
|
],
|
|
});
|