-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: hires boundary #255
feat: hires boundary #255
Conversation
* If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here. | ||
*/ | ||
hires?: boolean; | ||
hires?: boolean | 'boundary'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe word-boundary
to be more specific? Not sure if we are going to have more different type of boundary tho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking a shorter name would make it easier to type out when using it. But open to other names too.
… to word boundary magic-string 0.30.2 introduced [the `boundary` strategy][1] for its high-resolution source map mode, reducing the number of source map segments to align with word boundaries instead of having a segment per character. [1]: Rich-Harris/magic-string#255
… to word boundary magic-string 0.30.2 introduced [the `boundary` strategy][1] for its high-resolution source map mode, reducing the number of source map segments to align with word boundaries instead of having a segment per character. [1]: Rich-Harris/magic-string#255
This PR is the next best thing since sliced bread. <3 |
hires: 'boundary'
generates a segment for each word boundary, instead of for each character. Which should help:From twitter idea: https://twitter.com/dummdidumm_/status/1674102437890621454
Example sourcemap visualization