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

hot module reload can't be repeated quickly #9812

Open
LoganDark opened this issue Jun 20, 2024 · 2 comments
Open

hot module reload can't be repeated quickly #9812

LoganDark opened this issue Jun 20, 2024 · 2 comments
Labels
🕐 Waiting HMR Hot Module Reloading

Comments

@LoganDark
Copy link

🐛 bug report

After hot-reloading a file, it takes 10-20 seconds before it can hot reload again.

🎛 Configuration (.babelrc, package.json, cli command)

much of it is confidential, so please let me know if you need something specific

🤔 Expected Behavior

If I save a file multiple times in quick succession, each time should trigger a hot reload immediately.

😯 Current Behavior

After saving a file, Parcel performs the hot reload and the changes show up in browser, but then Parcel for some reason decides to also rebuild like 15 other files that have nothing to do with what I just changed, preventing any more hot reloads from being applied until it's done.

💁 Possible Solution

  1. Don't rebuild the bundle on hot reload until it's actually requested again.
  2. Terminate the build in progress if another hot reload needs to happen before it's done.

🔦 Context

Rapid iteration is very difficult when I have to wait 20-30 seconds between each change. For context, in Vite, hammering stuff out with HMR and Tailwind is so fast. But in Parcel it takes forever.

💻 Code Sample

n/a

🌍 Your Environment

Software Version(s)
Parcel 2.12.0
Node v20.14.0
npm/Yarn Yarn 4.2.2
Operating System Ubuntu 22.04 on Windows 11 23H2
@mischnic
Copy link
Member

mischnic commented Jul 1, 2024

Please provide a small code sample that reproduces the issue.

@LoganDark
Copy link
Author

Please provide a small code sample that reproduces the issue.

will try later.

@mischnic mischnic added the HMR Hot Module Reloading label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕐 Waiting HMR Hot Module Reloading
Projects
None yet
Development

No branches or pull requests

2 participants