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 (*Bundler) BundleAndWatch ¶ added in v0.94.0
type Config ¶
type Config struct { Name string Production bool Logger *zap.Logger AbsWorkingDir string SkipWatchOnEntryPoint bool EntryPoints []string WatchPaths []*watcher.WatchPath IgnorePaths []string OutFile string OutDir string OutExtension map[string]string OnAfterBundle func(buildErr error, rebuild bool) error OnWatch func(paths []string) }
Click to show internal directories.
Click to hide internal directories.