Versions in this module Expand all Collapse all v0 v0.14.15 Jan 31, 2022 v0.14.14 Jan 30, 2022 Changes in this version + func CompileFilterForPlugin(pluginName string, kind string, filter string) (*regexp.Regexp, error) + func HasPlaceholder(template []PathTemplate, placeholder PathPlaceholder) bool + func PluginAppliesToPath(path logger.Path, filter *regexp.Regexp, namespace string) bool + func ShouldCallRuntimeRequire(mode Mode, outputFormat Format) bool + func TemplateToString(template []PathTemplate) string + type DefineArgs struct + FindSymbol func(logger.Loc, string) js_ast.Ref + Loc logger.Loc + SymbolForDefine func(int) js_ast.Ref + type DefineData struct + CallCanBeUnwrappedIfUnused bool + CanBeRemovedIfUnused bool + DefineFunc DefineFunc + type DefineFunc func(DefineArgs) js_ast.E + type DotDefine struct + Data DefineData + Parts []string + type ExternalModules struct + AbsPaths map[string]bool + NodeModules map[string]bool + Patterns []WildcardPattern + type Format uint8 + const FormatCommonJS + const FormatESModule + const FormatIIFE + const FormatPreserve + func (f Format) KeepES6ImportExportSyntax() bool + func (f Format) String() string + type InjectableExport struct + Alias string + Loc logger.Loc + type InjectedDefine struct + Data js_ast.E + Name string + Source logger.Source + type InjectedFile struct + DefineName string + Exports []InjectableExport + Source logger.Source + type JSXExpr struct + Constant js_ast.E + Parts []string + type JSXOptions struct + Factory JSXExpr + Fragment JSXExpr + Parse bool + Preserve bool + type LegalComments uint8 + const LegalCommentsEndOfFile + const LegalCommentsExternalWithoutComment + const LegalCommentsInline + const LegalCommentsLinkedWithComment + const LegalCommentsNone + func (lc LegalComments) HasExternalFile() bool + type Loader int + const LoaderBase64 + const LoaderBinary + const LoaderCSS + const LoaderDataURL + const LoaderDefault + const LoaderFile + const LoaderJS + const LoaderJSON + const LoaderJSX + const LoaderNone + const LoaderTS + const LoaderTSX + const LoaderText + func (loader Loader) CanHaveSourceMap() bool + func (loader Loader) IsTypeScript() bool + type MaybeBool uint8 + const False + const True + const Unspecified + type Mode uint8 + const ModeBundle + const ModeConvertFormat + const ModePassThrough + type ModuleType uint8 + const ModuleCommonJS + const ModuleESM + const ModuleUnknown + type OnLoad struct + Callback func(OnLoadArgs) OnLoadResult + Filter *regexp.Regexp + Name string + Namespace string + type OnLoadArgs struct + Path logger.Path + PluginData interface{} + type OnLoadResult struct + AbsResolveDir string + AbsWatchDirs []string + AbsWatchFiles []string + Contents *string + Loader Loader + Msgs []logger.Msg + PluginData interface{} + PluginName string + ThrownError error + type OnResolve struct + Callback func(OnResolveArgs) OnResolveResult + Filter *regexp.Regexp + Name string + Namespace string + type OnResolveArgs struct + Importer logger.Path + Kind ast.ImportKind + Path string + PluginData interface{} + ResolveDir string + type OnResolveResult struct + AbsWatchDirs []string + AbsWatchFiles []string + External bool + IsSideEffectFree bool + Msgs []logger.Msg + Path logger.Path + PluginData interface{} + PluginName string + ThrownError error + type OnStart struct + Callback func() OnStartResult + Name string + type OnStartResult struct + Msgs []logger.Msg + ThrownError error + type Options struct + ASCIIOnly bool + AbsNodePaths []string + AbsOutputBase string + AbsOutputDir string + AbsOutputFile string + AllowOverwrite bool + AssetPathTemplate []PathTemplate + CSSBanner string + CSSFooter string + ChunkPathTemplate []PathTemplate + CodeSplitting bool + Conditions []string + Defines *ProcessedDefines + EntryPathTemplate []PathTemplate + ExcludeSourcesContent bool + ExtensionOrder []string + ExtensionToLoader map[string]Loader + ExternalModules ExternalModules + GlobalName []string + IgnoreDCEAnnotations bool + InjectAbsPaths []string + InjectedDefines []InjectedDefine + InjectedFiles []InjectedFile + IsTargetUnconfigured bool + JSBanner string + JSFooter string + JSX JSXOptions + KeepNames bool + LegalComments LegalComments + MainFields []string + MangleSyntax bool + MinifyIdentifiers bool + Mode Mode + ModuleType ModuleType + NeedsMetafile bool + OmitRuntimeForTests bool + OriginalTargetEnv string + OutputExtensionCSS string + OutputExtensionJS string + OutputFormat Format + Platform Platform + Plugins []Plugin + PreserveSymlinks bool + PreserveUnusedImportsTS bool + ProfilerNames bool + PublicPath string + RemoveWhitespace bool + SourceMap SourceMap + SourceRoot string + Stdin *StdinInfo + TS TSOptions + TSTarget *TSTarget + TreeShaking bool + TsConfigOverride string + UnsupportedCSSFeatures compat.CSSFeature + UnsupportedJSFeatures compat.JSFeature + UseDefineForClassFields MaybeBool + WatchMode bool + WriteToStdout bool + type PathPlaceholder uint8 + const DirPlaceholder + const HashPlaceholder + const NamePlaceholder + const NoPlaceholder + type PathPlaceholders struct + Dir *string + Hash *string + Name *string + func (placeholders PathPlaceholders) Get(placeholder PathPlaceholder) *string + type PathTemplate struct + Data string + Placeholder PathPlaceholder + func SubstituteTemplate(template []PathTemplate, placeholders PathPlaceholders) []PathTemplate + type Platform uint8 + const PlatformBrowser + const PlatformNeutral + const PlatformNode + type Plugin struct + Name string + OnLoad []OnLoad + OnResolve []OnResolve + OnStart []OnStart + type ProcessedDefines struct + DotDefines map[string][]DotDefine + IdentifierDefines map[string]DefineData + func ProcessDefines(userDefines map[string]DefineData) ProcessedDefines + type SourceMap uint8 + const SourceMapExternalWithoutComment + const SourceMapInline + const SourceMapInlineAndExternal + const SourceMapLinkedWithComment + const SourceMapNone + type StdinInfo struct + AbsResolveDir string + Contents string + Loader Loader + SourceFile string + type TSOptions struct + Parse bool + type TSTarget struct + Range logger.Range + Source logger.Source + Target string + UnsupportedJSFeatures compat.JSFeature + type WildcardPattern struct + Prefix string + Suffix string