Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for monorepo #15

Open
appdcs opened this issue Oct 7, 2021 · 1 comment
Open

Support for monorepo #15

appdcs opened this issue Oct 7, 2021 · 1 comment

Comments

@appdcs
Copy link

appdcs commented Oct 7, 2021

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

@harlan-zw
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants