web_pkg_external

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BldrDistWebPkgImports = map[string][]string{
	"react":                   {"index.js", "jsx-runtime.js", "jsx-dev-runtime.js"},
	"react-dom":               {"index.js", "client.js"},
	"@aptre/bldr":             {"index.ts"},
	"@aptre/bldr-react":       {"index.ts"},
	"@aptre/protobuf-es-lite": protobufEsLiteDistImports,
	"quickjs-wasi-reactor":    {"index.js"},
}

BldrDistWebPkgImports maps each BldrExternal package id to its entry import sub-paths relative to that package's web pkg root. These paths define the served web pkg entry names: buildWebPkg strips known extensions (including ".pb") from each import to derive the served "[name].mjs", so a consumer that remaps imports to /b/pkg/ URLs must derive the same names from this list, not from the package's on-disk layout (whose dist/ subdir and .pb.js filenames differ from the served names).

View Source
var BldrExternal = []string{
	"react",
	"react-dom",
	"@aptre/bldr",
	"@aptre/bldr-react",
	"@aptre/protobuf-es-lite",
	"quickjs-wasi-reactor",
}

BldrExternal are package prefixes bundled externally for all bldr components. Bundler call sites externalize both the package root and subpath imports such as @aptre/protobuf-es-lite/service-type.

Functions

func GetBldrDistWebPkgRefs

func GetBldrDistWebPkgRefs(buildPkgsDir, bldrDistRoot string) []*web_pkg.WebPkgRef

GetBldrDistWebPkgRefs returns the web pkg refs for BldrExternal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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