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

bundler

package
v0.57.17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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

func NewBundler(le *logrus.Entry, distPath, sourcePath, workingPath string) *Bundler

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) Bundle

func (b *Bundler) Bundle(ctx context.Context, scriptPath string) (string, error)

Bundle bundles a TypeScript file and returns the bundled JS code.

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.

Jump to

Keyboard shortcuts

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