The source-manipulation layer inside Vite and Rollup. Changelog.
- #326: overlapping
move()calls made the chunk list a cycle, so the nexttoString()hung forever. 1.2.1 - #331:
hasChanged()reported changes on unchanged strings after a multi-chunk overwrite; 775 of 20,880 generated cases wrong before, zero after, caught before the regression reached a release. 1.2.2 - #335:
replaceAllwith a regexp that can match the empty string looped until out of memory. 1.2.3 - #340, #342:
$patterns and replacer arguments now matchString.prototype.replace; an unmatched group no longer writes the textundefinedinto output. 32,902 of 136,000 comparisons differed before, zero after. 1.3.1 - #343:
indent()ignored appended and prepended text; 10,920 of 19,410 cases wrong before, zero after. 1.3.1 - #361:
update()across several chunks dropped inserts kept bycontentOnly. 1.4.3 - #366, #367:
replacematched inside removed and overwritten text at chunk boundaries; 17,070 of 19,761 exhaustive cases wrong before, zero after. 1.4.4
In review: #384, #385, #386. #384 fixes a regression from my own #366, found by my differential tester twincheck.