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

fix(vite): avoid hanging warning timer #2359

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

justmoon
Copy link
Contributor

Ran into an issue where my dev server processes wouldn't shut down for some time due to an open handle.

I eventually traced it to a timer in UnoCSS which is set when the build starts and then runs for 20 seconds no matter what.

This pull request makes it so the timer is automatically cleared once it's fulfilled its purpose or the build server is closed so it won't keep the Node process alive.

@justmoon justmoon requested a review from antfu as a code owner March 16, 2023 15:03
@netlify
Copy link

netlify bot commented Mar 16, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 78c90d9
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64132fcf0451ec000871221a
😎 Deploy Preview https://deploy-preview-2359--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@antfu antfu enabled auto-merge (squash) March 16, 2023 16:34
@antfu antfu disabled auto-merge March 18, 2023 12:16
@antfu antfu merged commit 8554bf4 into unocss:main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants