esbundle

package
v0.52.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	CompiledContent string
	SourceMapper    SourceMapper
}

Result of the bundle process.

func Bundle

func Bundle(inputFile string, define map[string]string) (Result, error)

Bundle returns either a Result or a list of Errors and an error.

type SourceMapper

type SourceMapper func(genLine, genColumn int) (source, name string, line, column int, ok bool)

SourceMapper can be used to find the origin of any line/column of the compiled content.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL