Help us shape the future of Go! Take the 2026 Go Developer Survey

web_pkg_external

package
v0.57.13 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 3 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/bldr-sdk":         bldrSdkImports,
	"@aptre/protobuf-es-lite": protobufEsLiteDistImports,
}

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 (servedEntryName in bldr/web/bundler/vite/web-pkg-naming.ts): a TypeScript source drops only its own extension, and a compiled JavaScript entry drops every known extension, including ".pb", to match its export subpath. 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.

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

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