Releases: ampproject/remapping
Releases · ampproject/remapping
v2.3.0
v2.2.1
Full Changelog: v2.2.0...v2.2.1
v2.2.0
New Features
- Switch to any input supported by
TraceMap
- This could give a small speed improvement, because a
presortedDecodedMap
can be returned by the loader
- This could give a small speed improvement, because a
Internal
- Refactor
originalPositionFor
to remove polymorphism - Extract
FastStringArray
into separate package - Extract
GenMapping
into separate package
Full Changelog: v2.1.2...v2.2.0
More Advanced Loading Controls
Building on https://github.com/ampproject/remapping/releases/tag/v2.1.0, LoadingContext
now provides a depth
field so that you can track the depth of the sourcmap tree at the current load. This can be used to, eg, prevent a recursive loading scenario when transforming files in-place (where the transformed load has a sourcemap, but the child source should not).
Advanced Loading Control
The loader API now provides a new LoadingContext
object, which provides new features:
importer
provides the resolved path of the parent sourcemap.source
allows the loader to change the resolved location of the transformed sourcemap or original source file.content
allows override the parent sourcemap'ssourcesContent
field for an original source file.
See https://github.com/ampproject/remapping#advanced-control-of-the-loading-graph for more information.