magic-string-rs icon indicating copy to clipboard operation
magic-string-rs copied to clipboard

support for `.hasChanged`

Open danielroe opened this issue 3 years ago • 0 comments

I'm not sure if it's needed in this library, but .hasChanged in magic-string allows for an early return (skipping returning code and sourcemap) if nothing has changed, which is a significant performance optimisation in the vite pipelin.

see https://github.com/Rich-Harris/magic-string/pull/202

danielroe avatar Nov 04 '22 11:11 danielroe