Source Map v3 generation

@stackline/inline-source-map

Generate inline source maps with the familiar synchronous API, first-party types, Unicode-safe browser output, and modern release gates.

npm install @stackline/inline-source-map
v1.0.1 Node 12+ TypeScript 3.9-7.0

Runs the production browser bundle

Inline map generator

Original source

UTF-8

Generated output


            
Ready 0 source lines 0 bytes

Lowest-change migration

Keep the original import name

Use an npm alias when a build tool already requires inline-source-map.

npm install inline-source-map@npm:@stackline/inline-source-map
const inlineSourceMap = require('inline-source-map');

Public contract

Small synchronous API

Full reference
MethodPurposeReturn
inlineSourceMap(options?)Create a generatorGenerator
addGeneratedMappings(file, source, offset?)Create identity mappings by lineGenerator
addMappings(file, mappings, offset?)Add explicit mapping positionsGenerator
addSourceContent(file, content)Embed original source safelyGenerator
inlineMappingUrl()Build a complete data URI commentString

Release evidence

Compatibility is measured

14
focused regression tests
5
differential upstream scenarios
100%
line, statement, and function coverage
12-24
tested Node.js runtime range

Machine-readable documentation

AI and crawler resources

#Stackline #SourceMaps #JavaScript #OpenSource #NPM #AIReadyDocs