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: skip line break mappings #284

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

sapphi-red
Copy link
Contributor

This PR removes line break mappings from the output sourcemap and reduces the output sourcemap.
visualizer before
visualizer after

esbuild does not output them and probably fine to skip them.
example repl
visualizer for that

@antfu
Copy link
Collaborator

antfu commented Oct 11, 2024

Would you consider this safe to ship in a patch? I don't know if any consumer would rely on that information.

@sapphi-red
Copy link
Contributor Author

I guess no one would rely on this information but I'm not sure.

@antfu
Copy link
Collaborator

antfu commented Oct 11, 2024

Ok, let's try it. If there are any cases I'd revert it and move to a minor then. Thanks!

@antfu antfu merged commit 5b1ecf7 into Rich-Harris:master Oct 11, 2024
3 checks passed
@sapphi-red sapphi-red deleted the perf/skip-line-break-mappings branch October 15, 2024 02:27
github-merge-queue bot pushed a commit to rolldown/rolldown that referenced this pull request Dec 1, 2024
<!-- Thank you for contributing! -->

### Description

Another one I thought I would port from magic-string:
- Rich-Harris/magic-string#284
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