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.
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
Used Package Manager
pnpm
Validations