bldr_plugin_compiler

package
v0.51.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EsbuildAssetSubdir = "esb"

EsbuildAssetSubdir is the sub-directory for esbuild assets within the assets dir.

View Source
var ViteAssetSubdir = "v"

ViteAssetSubdir is the sub-directory for vite assets within the assets dir.

Functions

func BuildAndCheckoutEsbuildSubManifest

func BuildAndCheckoutEsbuildSubManifest(
	ctx context.Context,
	le *logrus.Entry,
	host bldr_manifest_builder.BuildManifestHost,
	buildWorld world.Engine,
	outAssetsPath string,
	esbuildBuilderProto *configset_proto.ControllerConfig,
) (web_pkg.WebPkgRefSlice, []string, []*bldr_web_bundler_esbuild.EsbuildOutputMeta, error)

BuildAndCheckoutEsbuildSubManifest builds the esbuild sub-manifest and checks out the results. It returns the web package references, source files, and esbuild output metadata extracted from the sub-manifest. The caller is responsible for constructing and validating the esbuildBuilderProto.

func BuildAndCheckoutViteSubManifest

func BuildAndCheckoutViteSubManifest(
	ctx context.Context,
	le *logrus.Entry,
	host bldr_manifest_builder.BuildManifestHost,
	buildWorld world.Engine,
	outAssetsPath string,
	viteBuilderProto *configset_proto.ControllerConfig,
) (web_pkg.WebPkgRefSlice, []string, []*bldr_web_bundler_vite.ViteOutputMeta, error)

BuildAndCheckoutViteSubManifest builds the vite sub-manifest and checks out the results. It returns the web package references, source files, and vite output metadata extracted from the sub-manifest. The caller is responsible for constructing and validating the viteBuilderProto.

func BuildDirectWebPkgs

func BuildDirectWebPkgs(
	ctx context.Context,
	le *logrus.Entry,
	distSourcePath string,
	sourcePath string,
	workingPath string,
	outAssetsPath string,
	isRelease bool,
) (web_pkg.WebPkgRefSlice, []string, []web_pkg_vite.ImportMapEntry, error)

BuildDirectWebPkgs builds the BldrExternal web packages directly using Vite.

This is used when web packages are declared but no esbuild/vite sub-manifests exist to build them (e.g. in the saucer flow). Returns the web pkg refs, source files, and import map entries mapping logical specifiers to hashed output paths.

Types

This section is empty.

Directories

Path Synopsis
go
dev-wrapper command

Jump to

Keyboard shortcuts

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