Rust implementation of https://www.npmjs.com/package/magic-string with original sourcemap chain support. license.
This project is built for the Farm project, which is a extremely fast vite-compatible web build tool written in Rust.
Implement all APIs of magic-string. Bundle
will be implemented first.
- addSource
- generateMap
- append
- generateDecodedMap
- getIndentString
- indent
- prepend
- toString
- isEmpty
- length
- trimLines
- trim
- trimStart
- trimEnd
- addSourcemapLocation
- append
- appendLeft
- appendRight
- clone
- generateDecodedMap
- generateMap
- getIndentString
- indent
- move
- overwrite
- update
- prepend
- prependLeft
- prependRight
- remove
- lastChar
- lastLine
- slice
- toString
- isEmpty
- length
- trimLines
- trim
- trimEndAborted
- trimEnd
- trimStartAborted
- trimStart
- hasChanged
- replace
- replaceAll