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/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.
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 ¶
GetBldrDistWebPkgRefs returns the web pkg refs for BldrExternal.
Types ¶
This section is empty.