magic-string
Advanced tools
Changelog
0.6.2
Changelog
0.5.3
s.clone()
clones indent exclusion ranges and sourcemap locationsChangelog
0.5.1
Changelog
0.5.0
s.replace()
is deprecated in favour of s.overwrite()
(identical signature)bundle.addSource()
can take a MagicString
instance as its sole argument, for convenienceoptions
in new MagicString(str, options)
can include filename
and indentExclusionRanges
options, which will be used when bundlings.snip( start, end )
Changelog
0.4.9
file
option is optional when generating a bundle sourcemap