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

热更新无法监听 node_modules 文件的变化 #5096

Closed
13421468608 opened this issue Aug 20, 2024 · 3 comments
Closed

热更新无法监听 node_modules 文件的变化 #5096

13421468608 opened this issue Aug 20, 2024 · 3 comments

Comments

@13421468608
Copy link

使用 cli 创建的项目,使用 Monorepo 的工程结构,但是我发现 uniapp的热更新无法监听 node_modules 文件的变化,我看了 vite 的说明, 在 server中配置了 ignored,但是依旧无效,参考:vitejs/vite#8619
请问有什么方法可以让 热更新监听到 node_modules 中的文件的变化?

@Otto-J
Copy link
Member

Otto-J commented Aug 20, 2024

cli 本身是基于 vite 的项目,所以可以直接参考 vite 官方的答复。参考阅读 #3811 (comment) 的回复

@Otto-J Otto-J closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@13421468608
Copy link
Author

#3811 (comment) 让我参考的就是vitejs/vite#8619 ,试过了并没有用。
并且我现在遇到了 workspace:* 注入的依赖被重复打包到 vendor.js 的问题。我查了社区,发现也有人遇到类似的问题。https://ask.dcloud.net.cn/question/157763,通过 vite 怎么都修改不了这个问题。请问有解决方案吗

@13421468608
Copy link
Author

热更新问题已在 #3991 中找到答案,感谢

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