Documentation
¶
Overview ¶
Package sourcemap builds the generated-TypeScript -> original-.go source map (Source Map v3) that goesm attaches to every generated module.
goesm only produces this first hop. esbuild reads it from the generated file's sourceMappingURL comment and composes it into the final JavaScript -> .go map, so final map emission stays esbuild's job.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
Mappings []Mapping
// contains filtered or unexported fields
}
Builder collects sources and mappings.
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) InlineComment ¶
InlineComment returns a sourceMappingURL comment embedding the map.
func (*Builder) SourceIndex ¶
SourceIndex returns the index of a registered source.
Click to show internal directories.
Click to hide internal directories.