Skip to content

Releases: ampproject/remapping

v2.3.0

01 Mar 09:11
Compare
Choose a tag to compare

What's Changed

  • Add ignoreList support: 72a4ee2
  • Export SourceMap return type: 94a9b77

Full Changelog: v2.2.1...v2.3.0

v2.2.1

07 Apr 02:46
Compare
Choose a tag to compare

Full Changelog: v2.2.0...v2.2.1

v2.2.0

27 Apr 03:50
Compare
Choose a tag to compare

New Features

Internal

Full Changelog: v2.1.2...v2.2.0

More Advanced Loading Controls

16 Feb 09:24
Compare
Choose a tag to compare

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

07 Feb 07:15
Compare
Choose a tag to compare

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's sourcesContent field for an original source file.

See https://github.com/ampproject/remapping#advanced-control-of-the-loading-graph for more information.