Skip to content

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

Merged
bluwy merged 1 commit into
mainfrom
perf-replace-empty
Apr 5, 2024
Merged

perf(css): only replace empty chunk if imported#16349
bluwy merged 1 commit into
mainfrom
perf-replace-empty

Conversation

@bluwy
Copy link
Copy Markdown
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 😬

Loading
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.

2 participants