ElMassimo/iles

Expose unplugin-vue-components config to extend resolvers

Closed this issue · 2 comments

Would be good to have unplugin-vue-components exposed as a config (for eg, autoImportComponents), so that resolvers can be extended by users as required. These resolvers can be those shipped within unplugin-vue-components & those shipped part of component libraries.

Something similar to vite's mergeConfig could be used to merge default & overrides.

For eg,

import { defineConfig } from 'iles'
import NutUIResolver from '@nutui/nutui/dist/resolver'

export default defineConfig({
  siteUrl: 'https://iles-docs.netlify.app',
  jsx: 'preact',

  autoImportComponents: {
      resolvers: [
        NutUIResolver()
      ],
  },
})

Hi!

This is already possible, see unplugin-vue-components in the Plugins section of the docs.

Ohh woww.. How did I miss it :-) Thanks Max!