element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
300 stars 83 forks source link

How use ``unplugin-vue-components/vite`` with ``nuxt3``? #15

Closed oooplz closed 2 years ago

oooplz commented 3 years ago

How use unplugin-vue-components/vite with nuxt3?

We need on-demand import.

YunYouJun commented 3 years ago

Yeah, we are exploring this.

https://github.com/nuxt/components#library-authors

But @nuxt/components seems not support components/ComponentA/index.js. It may take some time to resolve.

xiaoxian521 commented 2 years ago

refer to: https://github.com/element-plus/element-plus-nuxt-starter/commit/98aa178d5031359d67653e1b5f5f7611ab94ca1f