[Question] Parcel serve in npm monorepo. Is it watching source code of deps too? #7660
Unanswered
karen-sarkisyan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm switching to Parcel in my project and I'm loving it so far. In fact, I want to ask whether it is as good as it seems. I have a file structure like this:
I set up 2 npm workspaces:
demo
, andmy-package
.demo
is a react app that usesmy-package
, a react component, as a dependency.I expected to run
parcel watch
for my-package andparcel serve
for demo in parallel, so that changes inmy-package
's source code are triggering a re-bundle, which is then used in demo react app.But instead, running
parcel serve
in my demo folder is already watching changes in source code of my-package and does HMR if I update something 🤯Is it an intended behavior? Or is it some side effect of my configuration that I shouldn't count will keep working?
Here's a link to the repo of my project where I have it working: https://github.com/karen-sarkisyan/react-wordpress-comments/
Beta Was this translation helpful? Give feedback.
All reactions