Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeWebPkgStrings ¶
func MergeWebPkgStrings(existing []*bldr_web_bundler.WebPkgRefConfig, ids []string) []*bldr_web_bundler.WebPkgRefConfig
MergeWebPkgStrings converts string package IDs to WebPkgRefConfig and appends them.
func ParseBldrWebPkgs ¶
func ParseBldrWebPkgs(projectRoot string) ([]*bldr_web_bundler.WebPkgRefConfig, error)
ParseBldrWebPkgs reads bldr.yaml and extracts webPkgs from the spacewave-web manifest.
Types ¶
type Bundler ¶
type Bundler struct {
// contains filtered or unexported fields
}
Bundler bundles TypeScript eval scripts using a Vite subprocess.
func NewBundler ¶
NewBundler creates a new eval bundler.
distPath is the bldr dist sources directory (.bldr/src/). sourcePath is the project root directory. workingPath is the working directory for temp files (.bldr/debug/eval/).
func (*Bundler) Close ¶
func (b *Bundler) Close()
Close shuts down the Vite subprocess and waits for cleanup.
func (*Bundler) SetWebPkgs ¶
func (b *Bundler) SetWebPkgs(pkgs []*bldr_web_bundler.WebPkgRefConfig)
SetWebPkgs configures web packages for externalization.
Click to show internal directories.
Click to hide internal directories.