Rich-Harris / magic-string

Manipulate strings like a wizard
MIT License
2.34k stars 113 forks source link

feat: hires boundary #255

Closed bluwy closed 1 year ago

bluwy commented 1 year ago

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

lforst commented 6 months ago

This PR is the next best thing since sliced bread. <3