Files
AEmotionStudio-ComfyUI-Magn…/vite.config.ts
T
Æmotion StudioandClaude Opus 5.5 4b06ee92bb Update the Inspector panel look, navigation and editing
Restyle the panel on ComfyUI palette tokens and drop the built-in themes.
Add a header with Back/Forward, Prev/Next, Focus, Lock and a searchable
Go to node picker, a subgraph/group breadcrumb, and simplified modes:
Follow glass or Float, plus Sticky, Follow selection and Lock to node
(replaces Hold).

Fix widget edits (step2 steps, INT/FLOAT, commit on Enter/blur, undo),
subgraph lookups, orphaned dropdown menus, global arrow-key capture,
the pop-out editor, and remove Google Fonts loading and dead code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 06:47:21 -08:00

40 lines
1.3 KiB
TypeScript

import { defineConfig } from 'vite';
import { resolve } from 'path';
import { version } from './package.json';
export default defineConfig({
define: { __MAGNIFY_VERSION__: JSON.stringify(version) },
build: {
lib: {
entry: {
'magnify_glass': resolve(__dirname, 'src/magnify_glass.ts'),
'magnify_info_panel': resolve(__dirname, 'src/magnify_info_panel.ts')
},
formats: ['es'],
fileName: (format, entryName) => `${entryName}.js`
},
outDir: 'web',
emptyOutDir: false, // Keep existing files
rollupOptions: {
external: [
/^\/scripts\//, // Match /scripts/ (Absolute path)
/^\.\.\/\.\.\/scripts\//, // Match ../../scripts/ (Browser path - deprecated)
],
output: {
preserveModules: true,
preserveModulesRoot: 'src',
entryFileNames: '[name].js',
}
},
sourcemap: false,
minify: false // Keep readable for debugging
},
resolve: {
alias: {
'@shared': resolve(__dirname, 'src/shared'),
'@magnify-glass': resolve(__dirname, 'src/magnify-glass'),
'@info-panel': resolve(__dirname, 'src/info-panel')
}
}
});