enhanced-magic-string

Crates.ioenhanced-magic-string
lib.rsenhanced-magic-string
version0.0.16
sourcesrc
created_at2023-10-31 13:45:14.093369
updated_at2024-11-14 16:01:13.356289
descriptionRust based magic-string implementation with sourcemap chains support
homepage
repositoryhttps://github.com/farm-fe/enhanced-magic-string
max_upload_size
id1019840
size62,804
brightwu (wre232114)

documentation

README

enhanced-magic-string

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.

RoadMap

Implement all APIs of magic-string. Bundle will be implemented first.

Bundle

  • addSource
  • generateMap
  • append
  • generateDecodedMap
  • getIndentString
  • indent
  • prepend
  • toString
  • isEmpty
  • length
  • trimLines
  • trim
  • trimStart
  • trimEnd

MagicString

  • 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
Commit count: 67

cargo fmt