mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
* Convert litegraph.js to TS
* Overhaul static litegraph.d.ts with updated types
* Fix rename oversights and revert fix unused param
- Some functions were broken by merging updated TS function signatures which included param renames
- Removal of unused params does not belong in the TS conversion PR, and has been reverted
* Remove legacy static .d.ts file
* Add callback decl from #180
Support allowing links to widgets (#180)
c23e610c11
* Convert NodeId to string | number
Results in significantly less downstream changes, despite being a change from the old static file.
---------
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
29 lines
565 B
TypeScript
29 lines
565 B
TypeScript
import { defineConfig } from 'vite'
|
|
import path from 'path'
|
|
import dts from 'vite-plugin-dts'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: path.resolve(__dirname, 'src/litegraph'),
|
|
name: 'litegraph.js',
|
|
fileName: (format) => `litegraph.${format}.js`,
|
|
formats: ['es', 'umd']
|
|
},
|
|
minify: false,
|
|
sourcemap: true,
|
|
},
|
|
plugins: [
|
|
dts({
|
|
entryRoot: 'src',
|
|
insertTypesEntry: true,
|
|
include: ['src/**/*.ts'],
|
|
outDir: 'dist',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': '/src'
|
|
}
|
|
}
|
|
}) |