Skip to content

perf: only bundle node version debug #19715

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 1 commit into from
Mar 31, 2025

Conversation

sapphi-red
Copy link
Member

Description

debug contains code for both browsers and node. The default entrypoint detects the runtime and uses the corresponding file.
In our case, we know that we only run on node, and the browser code is not needed.

I set alias to debug to resolve to the file that will be used for node.

This PR reduces the compressed package size for 6kB. Not big, but I think the change is simple enough.

@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label Mar 25, 2025
@sapphi-red sapphi-red changed the title perf: only bundle debug for node perf: only bundle node version debug Mar 25, 2025
@patak-dev patak-dev merged commit e435aae into vitejs:main Mar 31, 2025
17 checks passed
@sapphi-red sapphi-red deleted the perf/only-bundle-debug-for-node branch March 31, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants