unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.66k stars 341 forks source link

feat(idux): update idux resolver to support v2 version #722

Closed sallerli1 closed 2 months ago

sallerli1 commented 7 months ago

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

fix 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

stackblitz[bot] commented 7 months ago

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

sallerli1 commented 2 months ago

@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