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: strip source map when unused #374

Merged
merged 3 commits into from
Nov 9, 2023
Merged

perf: strip source map when unused #374

merged 3 commits into from
Nov 9, 2023

Conversation

privatenumber
Copy link
Owner

@privatenumber privatenumber commented Nov 9, 2023

If source maps are not enabled by the user, strip all source maps so it speeds up processing. Results seem marginal but better than nothing.

Also note, stripping source maps has notable performance gains in v18. Unfortunately, process.sourceMapsEnabled isn't available in v18 so we're not able to make this improvement there.

related #285

@privatenumber privatenumber merged commit 80cd7a7 into next Nov 9, 2023
2 checks passed
@privatenumber privatenumber deleted the perf-source-map branch November 9, 2023 05:46
privatenumber added a commit that referenced this pull request Nov 9, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant