magic-string-rs
magic-string-rs copied to clipboard
support for `.hasChanged`
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