Skip to content

fix(vite): more efficient and robust global build mode #4586

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

Merged
merged 5 commits into from
Apr 12, 2025

Conversation

antfu
Copy link
Member

@antfu antfu commented Apr 11, 2025

fix #4403

Ideally this should be much more robust and efficient. But I am not sure if I'd missed any edge cases (also not sure why it was so complicated 😅). I guess we should introduce this as an experimental change or have a flag to toggle this behaviour.

thanks @sapphi-red for investigating together

Co-authored-by: sapphi-red <sapphi-red@users.noreply.github.com>
@antfu antfu requested a review from zyyv as a code owner April 11, 2025 07:06
Copy link

netlify bot commented Apr 11, 2025

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 93a0e1b
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/67f8d94fe293cc0008d2407f
😎 Deploy Preview https://deploy-preview-4586--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 configuration.

Copy link

pkg-pr-new bot commented Apr 11, 2025

Open in StackBlitz

commit: 93a0e1b

@antfu antfu merged commit 0300cc6 into main Apr 12, 2025
12 checks passed
@antfu antfu deleted the fix/efficient-vite-global-model branch April 12, 2025 01:23
@zyyv zyyv linked an issue May 24, 2025 that may be closed by this pull request
4 tasks
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.

[vite] [unocss:global:build:scan] could not find "xx/__uno.css" in build watch mode rolldown-vite incompatibility due to modifying chunk.modules
1 participant