Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

More Advanced Loading Controls

Choose a tag to compare

@jridgewell jridgewell released this 16 Feb 09:24
· 24 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).