bundleconfig

package
v0.90.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonNodeModuleReg = regexp.MustCompile(`^[^./]|^\.[^./]|^\.\.[^/]`) // Must not start with "/" or "./" or "../"

NonNodeModuleReg copied from https://github.com/egoist/tsup/blob/dev/src/esbuild/external.ts#L5

Functions

This section is empty.

Types

type Bundler

type Bundler struct {
	// contains filtered or unexported fields
}

func NewBundler

func NewBundler(name string, config Config, log abstractlogger.Logger) (*Bundler, error)

func (*Bundler) Run

func (b *Bundler) Run()

func (*Bundler) RunScript

func (b *Bundler) RunScript(blocking bool)

func (*Bundler) Stop

func (b *Bundler) Stop()

type Config

type Config struct {
	EntryPoint            string
	WatchPaths            []string
	IgnorePaths           []string
	ScriptEnv             []string
	OutFile               string
	SkipBuild             bool
	SkipRun               bool
	SkipWatch             bool
	BlockOnBuild          bool
	SkipWatchOnEntryPoint bool
	// OnFirstRun is closed after the initial build and script run
	OnFirstRun                  chan struct{}
	EnableProcessEnvUsagePlugin bool
}

Jump to

Keyboard shortcuts

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