source-map-links is an independent alternative or migration helper for projects moving away from source-map-resolve. It is not affiliated with the original package maintainers or project.
npm install source-map-links- Source package:
source-map-resolve - Replacement package:
source-map-links - Source signal: npm deprecation notice points to upstream deprecation guidance
- Migration direction: Source map comment discovery, data URL parsing, URL resolution, and source content helpers.
- Preserved: sourceMappingURL discovery, source map resolution, source URL resolution, and sync/async pipeline support.
- Improved: Data URL parsing, XSSI prefix stripping, typed source-map objects, and explicit read callbacks.
- Intentional difference: File system and network loading are caller-provided to keep the package dependency-free.
- Replace the old dependency at one migration boundary first.
- Run the package or application test suite after the swap.
- Keep attribution accurate: this package is independent and is not an official successor to
source-map-resolve.