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

perf(css): only replace empty chunk if imported #16349

Merged
merged 1 commit into from Apr 5, 2024
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Apr 4, 2024

Description

When replacing empty chunks for pure CSS chunks, if the current chunk doesn't import any pure CSS chunks, we can skip the replacement, and the potentially expensive regex replacement.

On a project I'm testing, it should save 90ms of work, which isn't a lot but maybe helpful for other projects 😬

Copy link

stackblitz bot commented Apr 4, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev
Copy link
Member

/ecosystem-ci run

@bluwy bluwy merged commit e2658ad into main Apr 5, 2024
10 checks passed
@bluwy bluwy deleted the perf-replace-empty branch April 5, 2024 02:30
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