package bundler

import "github.com/evanw/esbuild/internal/bundler"

Index

Functions

func DefaultExtensionToLoaderMap

func DefaultExtensionToLoaderMap() map[string]config.Loader

Types

type Bundle

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

func ScanBundle

func ScanBundle(
	log logger.Log,
	fs fs.FS,
	res resolver.Resolver,
	caches *cache.CacheSet,
	entryPoints []EntryPoint,
	options config.Options,
) Bundle

func (*Bundle) Compile

func (b *Bundle) Compile(log logger.Log, options config.Options) ([]OutputFile, string)

type EntryPoint

type EntryPoint struct {
	InputPath  string
	OutputPath string
	IsFile     bool
}

type OutputFile

type OutputFile struct {
	AbsPath  string
	Contents []byte

	IsExecutable bool
	// contains filtered or unexported fields
}

Source Files

bundler.go linker.go

Version
v0.11.1
Published
Mar 29, 2021
Platform
windows/amd64
Imports
34 packages
Last checked
45 minutes ago

Tools for package owners.