mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Replace @trivago/prettier-plugin-sort-imports with @prettier/plugin-oxc and @ianvs/prettier-plugin-sort-imports for improved performance. Changes: - Add @prettier/plugin-oxc (Rust-based fast parser) - Add @ianvs/prettier-plugin-sort-imports (import sorting compatible with oxc) - Remove @trivago/prettier-plugin-sort-imports - Update .prettierrc to use new plugins and compatible import order config - Reformat all files with new plugin configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
482 B
TypeScript
26 lines
482 B
TypeScript
import { resolve } from 'path'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import dts from 'vite-plugin-dts'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/types/index.ts'),
|
|
name: 'comfyui-frontend-types',
|
|
formats: ['es'],
|
|
fileName: 'index'
|
|
},
|
|
copyPublicDir: false,
|
|
minify: false
|
|
},
|
|
|
|
plugins: [
|
|
dts({
|
|
copyDtsFiles: true,
|
|
rollupTypes: true,
|
|
tsconfigPath: 'tsconfig.types.json'
|
|
})
|
|
]
|
|
})
|