Detect 2nd depedencies and HMR? #9940
Unanswered
jihea-park
asked this question in
Help
Replies: 1 comment
-
This sounds like a bug for VIte to be aware of. You may want to report it there. A Turborepo solution to this, though, would be to use the Compiled Packages pattern and Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This is my project.
apps/web
has dependency topackages/ui
andpackages/ui
has dependency topackages/chart
.There is no dependency to
packages/chart
inapps/web
.I run localhost with
yarn dev
.If I change the code of
packages/ui
, HMR and fast refresh occurs correctly.But If I change the code of
packages/chart
, HMR and fast refresh not occur.Does turborepo could detect the change of 2nd depedency?
If I write a script of
"dev": "vite build --watch",
to package.json ofpackages/chart
,HMR and fash refresh works fine.
The point what I want is without
dev
script (and also withoutresolve.alias
of vite.config.ts inapps/web
), how can I make HMR and fash refresh ofpackages/chart
?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions