unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
4k stars 143 forks source link

feat: support qwik #225

Closed Wyatex closed 2 years ago

Wyatex commented 2 years ago

Description

Add support for qwik.
Related to #224

Wyatex commented 2 years ago

It seems that React.createElement was generated by esbuild. When I set esbuild: { jsx: 'preserve'} in vite.config.ts, vite told me:

Unexpected token (Note that you need plugins to import files that are not JavaScript)

Does this mean that the unplugin-icons process code after qwikVite? But I don't understand why this is useful in DEV mode