package runtime

import "github.com/evanw/esbuild/internal/runtime"

Index

Constants

const SourceIndex = uint32(0)

The runtime source is always at a special index. The index is always zero but this constant is always used instead to improve readability and ensure all code that references this index can be discovered easily.

Variables

var ES5Source = logger.Source{
	Index:          SourceIndex,
	KeyPath:        logger.Path{Text: "<runtime>"},
	PrettyPath:     "<runtime>",
	IdentifierName: "runtime",
	Contents:       code(false),
}
var ES6Source = logger.Source{
	Index:          SourceIndex,
	KeyPath:        logger.Path{Text: "<runtime>"},
	PrettyPath:     "<runtime>",
	IdentifierName: "runtime",
	Contents:       code(true),
}

Functions

func CanUseES6

func CanUseES6(unsupportedFeatures compat.JSFeature) bool

Source Files

runtime.go

Version
v0.14.34
Published
Apr 7, 2022
Platform
js/wasm
Imports
2 packages
Last checked
3 seconds ago

Tools for package owners.