feat(idux): update idux resolver to support v2 version
Description
Since we recently published beta version of Idux v2, and we changed our theme and style import methods, original resolve wouldn't correctly import style and theme assets of v2 version components.
Linked Issues
https://github.com/unplugin/unplugin-vue-components/issues/721
Additional context
I added a version configuration to the options of the resolver which is auto detected by local-package by default
original side effects resolve method is moved to getLegacySideEffects
Run & review this pull request in StackBlitz Codeflow.
@antfu can u please review this pr? 2.0 version has been published for months and we've been using this version for production for quite a while thanks for ur support