vbenjs / vite-plugin-theme

Vite plugin for dynamically changing the theme color of the interface
MIT License
140 stars 35 forks source link

monorepo 项目提升依赖至root, 会导致context.injectClientPath引入依赖 #29

Open 1514100951 opened 1 year ago

1514100951 commented 1 year ago

image 在 pnpm monorepo项目下, vite-plugin-theme 的安装安装位置在根目录路的node_modules 下, 而这里引用的是根目录下的路径会导致下图引用错误 image

1514100951 commented 1 year ago

这是咱们的一个路径 image' 我看到其他的项目是这样的一个路径 image '