bundler

package
v0.93.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

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 {
	BuildDoneChan chan struct{}
	// contains filtered or unexported fields
}

func NewBundler

func NewBundler(config Config) *Bundler

func (*Bundler) Bundle

func (b *Bundler) Bundle(ctx context.Context)

type Config

type Config struct {
	Name                  string
	Logger                abstractlogger.Logger
	SkipWatchOnEntryPoint bool
	EntryPoint            string
	WatchPaths            []string
	IgnorePaths           []string
	OutFile               string
}

Jump to

Keyboard shortcuts

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