Skip to content

Plugin will try to inject other repo in monorepo #500

@KawaiiZapic

Description

@KawaiiZapic

Describe the bug

From #499 , plugin will inject import statement out of current repo. For example, plugin try to inject "vue", If other repo that being injected does not install "vue" as its dep, will cause a build error.

In the reproduction, run pnpm build vite will exit with error, which should not happend because @example/api never configure to run with this plugin.

Reproduction

https://stackblitz.com/edit/vitejs-vite-kjoeqv?file=packages%2Ffe%2Fsrc%2Findex.js

System Info

Not provided

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions