package bundler

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

Index

Functions

func DefaultExtensionToLoaderMap

func DefaultExtensionToLoaderMap() map[string]config.Loader

func ResolveFailureErrorTextSuggestionNotes

func ResolveFailureErrorTextSuggestionNotes(
	res resolver.Resolver,
	path string,
	kind ast.ImportKind,
	pluginName string,
	fs fs.FS,
	absResolveDir string,
	platform config.Platform,
	originatingFilePath string,
) (text string, suggestion string, notes []logger.MsgData)

func RunOnResolvePlugins

func RunOnResolvePlugins(
	plugins []config.Plugin,
	res resolver.Resolver,
	log logger.Log,
	fs fs.FS,
	fsCache *cache.FSCache,
	importSource *logger.Source,
	importPathRange logger.Range,
	importer logger.Path,
	path string,
	kind ast.ImportKind,
	absResolveDir string,
	pluginData interface{},
) (*resolver.ResolveResult, bool, resolver.DebugMeta)

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,
	timer *helpers.Timer,
) Bundle

func (*Bundle) Compile

func (b *Bundle) Compile(log logger.Log, options config.Options, timer *helpers.Timer, mangleCache map[string]interface{}) ([]graph.OutputFile, string)

type EntryPoint

type EntryPoint struct {
	InputPath  string
	OutputPath string
	IsFile     bool
}

Source Files

bundler.go debug.go linker.go

Version
v0.14.49
Published
Jul 10, 2022
Platform
windows/amd64
Imports
36 packages
Last checked
11 minutes ago

Tools for package owners.