unplugin / unplugin-icons

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

fix: vue2 compiler issue #356

Closed twt898xu closed 6 months ago

twt898xu commented 7 months ago

Description

Fix a Vue2 compiler issue

Linked Issues

closes https://github.com/unplugin/unplugin-icons/issues/355

Additional context

stackblitz[bot] commented 7 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

antfu commented 7 months ago

I think we better do a fallback to support both old and new versions. Like mod.default || mod