enhanced-magic-string

Crates.ioenhanced-magic-string
lib.rsenhanced-magic-string
version0.1.0
sourcesrc
created_at2023-10-31 13:45:14.093369
updated_at2024-10-19 15:43:53.467948
descriptionRust based magic-string implementation with sourcemap chains support
homepage
repositoryhttps://github.com/farm-fe/enhanced-magic-string
max_upload_size
id1019840
size63,241
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