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

Automatic hmrDelay activation with a warning, for big eleventy/typescript rebuilds #2083

Open
Jack-Works opened this issue Dec 22, 2020 · 1 comment

Comments

@Jack-Works
Copy link
Contributor

@Jack-Works Jack-Works commented Dec 22, 2020

TypeScript has a bug, it will touch all files in --build mode. This leads to too many [ESM-HMR] reload. Please add a throttle on it thanks

image

@FredKSchott
Copy link
Member

@FredKSchott FredKSchott commented Dec 22, 2020

Check out hmrDelay which should give you what you need here.

A good feature would be to detect that this was happening, and then automatically increase hmrDelay

@FredKSchott FredKSchott changed the title Too many files changed leads to browser dies Automatic hmrDelay activation with a warning, for big eleventy/typescript rebuilds Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.