mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
Added `with { type: 'json' }` assertions to all JSON imports to ensure compatibility with Node.js ES modules and Playwright environments. This follows the current ESM specification where JSON imports require explicit type assertions.
Affected areas:
- Tailwind config
- i18n locale imports (36 files)
- Test fixtures and spec files
- API client feature flags
- Core color palettes
References:
- https://nodejs.org/api/esm.html
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
19 lines
430 B
TypeScript
19 lines
430 B
TypeScript
import lucide from '@iconify-json/lucide/icons.json' with { type: 'json' }
|
|
import { addDynamicIconSelectors } from '@iconify/tailwind'
|
|
|
|
import { iconCollection } from './build/customIconCollection'
|
|
|
|
export default {
|
|
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
|
|
|
|
plugins: [
|
|
addDynamicIconSelectors({
|
|
iconSets: {
|
|
comfy: iconCollection,
|
|
lucide
|
|
},
|
|
prefix: 'icon'
|
|
})
|
|
]
|
|
}
|