Skip to content

More Advanced Loading Controls

Compare
Choose a tag to compare
@jridgewell jridgewell released this 16 Feb 09:24
· 22 commits to main since this release

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).