When forcing purge-icon to load icons data from package @iconify/json or @iconify-json/[collection] using vite and "type": "module", it results with an exception: Dynamic require of "@iconify/json/json/[collection].json" is not supported, which is thrown here
Describe the bug
When forcing
purge-icon
to load icons data from package@iconify/json
or@iconify-json/[collection]
using vite and"type": "module"
, it results with an exception:Dynamic require of "@iconify/json/json/[collection].json" is not supported
, which is thrown hereIt seems to be an issue related to
esbuild
/tsup
Reproduction
https://stackblitz.com/edit/vitejs-vite-9qv2ug?file=vite.config.ts
System Info
Used Package Manager
npm
Validations