vue-cli-plugin-import-components
vue-cli-plugin-import-components copied to clipboard
Support for monorepo
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
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