Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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).
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 ¶
GetBldrDistWebPkgRefs returns the web pkg refs for BldrExternal.
Types ¶
This section is empty.