unplugin / unplugin-icons

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

fix: vue2 compiler issue #356

Closed twt898xu closed 2 months ago

twt898xu commented 2 months ago

Description

Fix a Vue2 compiler issue

Linked Issues

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

Additional context

stackblitz[bot] commented 2 months ago

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

antfu commented 2 months ago

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