Replies: 1 comment 6 replies
-
This is indeed misleading. Do you want to open a PR that removes parcel/packages/core/parcel/src/cli.js Line 452 in ff1a55e and adds that plugin with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, thanks a lot for all the work done on Parcel 2 :)
I'm using Parcel 2 mainly with the API (not the CLI), and I noticed something weird. Maybe it is a feature and not a bug so this is why i'm not opening an issue.
If I got this config :
HMR runtime is injected into generated bundle. But, HMR port is not opened, it took me some long minutes to catch that the HMR does not connect because the HMR service is actually not running.
Here is the error in chrome dev tools.
I inspected what config parcel cli was using (with good old console log) and discovered that adding
{ packageName: '@parcel/reporter-dev-server', resolveFrom: __filename }
resolved the issue, HMR is correctly connecting.To me 'watch' should start HMR if we have an
hmrOptions
, other options should not change this behavior, this is a bit misleading.I know you are working pretty hard on the documentation also and maybe I missed something.
( working with Parcel version beta-2, tested others versions and it behaved like so )
I can create a ticket if needed :)
Thanks a lot,
Alexis
Beta Was this translation helpful? Give feedback.
All reactions