vue-cli-plugin-import-components icon indicating copy to clipboard operation
vue-cli-plugin-import-components copied to clipboard

Support for monorepo

Open appdcs opened this issue 3 years ago • 1 comments

Hi there, I am wondering if it would be possible to use vue-cli-plugin-import-components to automatically resolve components provided by another package (as in a monorepo), specified by:

// /my-monorepo-project/package-a/vue.config.js

module.exports = {
  pluginOptions: {
    components: {
      path: 'package-b/components',
    },
  },
}

This currently throws an error: no such file or directory, mkdir '/Users/my-user/repos/my-monorepo-project/package-a/package-b/components'

Cheers

appdcs avatar Oct 07 '21 00:10 appdcs

Hey @appdcs

Thanks for the suggestion. It is something I may look at, but I will also be looking to deprecate this package soon.

If you want a quicker solution take a look at https://github.com/antfu/unplugin-vue-components

harlan-zw avatar Oct 07 '21 04:10 harlan-zw