github.com/evanw/esbuild/internal/bundler.linkerContext.options (field)

134 uses

	github.com/evanw/esbuild/internal/bundler (current package)
		linker.go#L61: 	options     *config.Options
		linker.go#L385: 		options:           options,
		linker.go#L472: 					(repr.ast.HasLazyExport && c.options.Mode == config.ModeConvertFormat && !c.options.OutputFormat.KeepES6ImportExportSyntax()),
		linker.go#L512: 			if repr.ast.HasLazyExport && c.options.Mode == config.ModePassThrough {
		linker.go#L529: 	if c.options.OutputFormat == config.FormatCommonJS {
		linker.go#L625: 	if c.options.Mode == config.ModePassThrough {
		linker.go#L658: 						if js := c.options.OutputExtensionJS; strings.HasSuffix(baseNameOrEmpty, js) {
		linker.go#L661: 						baseNameOrEmpty += c.options.OutputExtensionCSS
		linker.go#L740: 				crossChunkAbsPaths[i] = c.fs.Join(c.options.AbsOutputDir, relPath)
		linker.go#L772: 	if c.options.PublicPath != "" {
		linker.go#L773: 		return c.options.PublicPath + toRelPath
		linker.go#L945: 		switch c.options.OutputFormat {
		linker.go#L951: 				if c.options.MinifyIdentifiers {
		linker.go#L984: 			switch c.options.OutputFormat {
		linker.go#L1171: 					if c.options.CodeSplitting {
		linker.go#L1220: 			(c.options.OutputFormat == config.FormatIIFE ||
		linker.go#L1221: 				c.options.OutputFormat == config.FormatESModule) {
		linker.go#L1278: 		if (c.options.OutputFormat == config.FormatPreserve || c.options.OutputFormat == config.FormatCommonJS) &&
		linker.go#L1366: 			c.options.OutputFormat != config.FormatCommonJS) {
		linker.go#L1529: 		c.options.OutputFormat == config.FormatESModule && len(repr.meta.sortedAndFilteredExportAliases) > 0
		linker.go#L1656: 		if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
		linker.go#L1685: 	if !repr.meta.cjsStyleExports && (!file.isEntryPoint || c.options.OutputFormat != config.FormatCommonJS) {
		linker.go#L1700: 	if repr.ast.ExportKeyword.Len > 0 && (repr.meta.cjsStyleExports || (file.isEntryPoint && c.options.OutputFormat == config.FormatCommonJS)) {
		linker.go#L1784: 			switch c.options.OutputFormat {
		linker.go#L1792: 				if len(c.options.GlobalName) > 0 {
		linker.go#L1822: 		} else if repr.meta.forceIncludeExportsForEntryPoint && c.options.OutputFormat == config.FormatIIFE && len(c.options.GlobalName) > 0 {
		linker.go#L1995: 			if status == importExternal && c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L2145: 		if (!record.SourceIndex.IsValid() && (!c.files[sourceIndex].isEntryPoint || !c.options.OutputFormat.KeepES6ImportExportSyntax())) ||
		linker.go#L2459: 		isTreeShakingEnabled := config.IsTreeShakingEnabled(c.options.Mode, c.options.OutputFormat)
		linker.go#L2487: 					if otherFile := &c.files[otherSourceIndex]; otherFile.ignoreIfUnused && !c.options.IgnoreDCEAnnotations {
		linker.go#L2620: 			if record.Kind != ast.ImportRequire && !c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L2660: 		if (!record.SourceIndex.IsValid() && (!file.isEntryPoint || !c.options.OutputFormat.KeepES6ImportExportSyntax())) ||
		linker.go#L2733: 		if c.options.AbsOutputFile != "" {
		linker.go#L2734: 			baseName = c.fs.Base(c.options.AbsOutputFile)
		linker.go#L2739: 			} else if relPath, ok := c.fs.Rel(c.options.AbsOutputBase, source.KeyPath.Text); ok {
		linker.go#L2772: 				baseName += c.options.OutputExtensionJS
		linker.go#L2774: 				baseName += c.options.OutputExtensionCSS
		linker.go#L3023: 	} else if c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L3048: 	shouldStripExports := c.options.Mode != config.ModePassThrough || !file.isEntryPoint
		linker.go#L3074: 					if !record.SourceIndex.IsValid() && c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L3389: 	if c.options.MangleSyntax {
		linker.go#L3406: 		if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
		linker.go#L3431: 	if file.loader.CanHaveSourceMap() && c.options.SourceMap != config.SourceMapNone {
		linker.go#L3439: 	if c.options.OutputFormat == config.FormatIIFE {
		linker.go#L3446: 		OutputFormat:        c.options.OutputFormat,
		linker.go#L3447: 		RemoveWhitespace:    c.options.RemoveWhitespace,
		linker.go#L3448: 		MangleSyntax:        c.options.MangleSyntax,
		linker.go#L3449: 		ASCIIOnly:           c.options.ASCIIOnly,
		linker.go#L3451: 		ExtractComments:     c.options.Mode == config.ModeBundle && c.options.RemoveWhitespace,
		linker.go#L3452: 		UnsupportedFeatures: c.options.UnsupportedJSFeatures,
		linker.go#L3490: 	if c.options.Mode != config.ModePassThrough {
		linker.go#L3496: 	if c.options.MinifyIdentifiers {
		linker.go#L3589: 			if c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L3656: 	chunkAbsDir := c.fs.Join(c.options.AbsOutputDir, chunk.relDir)
		linker.go#L3663: 		if partRange.sourceIndex == runtime.SourceIndex && c.options.OmitRuntimeForTests {
		linker.go#L3698: 			if c.options.OutputFormat == config.FormatIIFE {
		linker.go#L3703: 				OutputFormat:     c.options.OutputFormat,
		linker.go#L3704: 				RemoveWhitespace: c.options.RemoveWhitespace,
		linker.go#L3705: 				MangleSyntax:     c.options.MangleSyntax,
		linker.go#L3725: 		if c.options.RemoveWhitespace {
		linker.go#L3746: 				quoted := string(js_printer.QuoteForJSON(repr.ast.Directive, c.options.ASCIIOnly)) + ";" + newline
		linker.go#L3753: 		if len(c.options.Banner) > 0 {
		linker.go#L3754: 			prevOffset.advanceString(c.options.Banner)
		linker.go#L3756: 			j.AddString(c.options.Banner)
		linker.go#L3761: 		if c.options.OutputFormat == config.FormatIIFE {
		linker.go#L3764: 			if len(c.options.GlobalName) > 0 {
		linker.go#L3767: 			if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
		linker.go#L3786: 		if c.options.AbsMetadataFile != "" {
		linker.go#L3797: 					js_printer.QuoteForJSON(c.res.PrettyPath(logger.Path{Text: importAbsPath, Namespace: "file"}), c.options.ASCIIOnly),
		linker.go#L3798: 					js_printer.QuoteForJSON(continueData.crossChunkImportRecords[i].Kind.StringForMetafile(), c.options.ASCIIOnly)))
		linker.go#L3807: 			if c.options.OutputFormat.KeepES6ImportExportSyntax() {
		linker.go#L3836: 					js_printer.QuoteForJSON(alias, c.options.ASCIIOnly)))
		linker.go#L3843: 				jMeta.AddString(fmt.Sprintf("],\n      \"entryPoint\": %s,\n      \"inputs\": {", js_printer.QuoteForJSON(entryPoint, c.options.ASCIIOnly)))
		linker.go#L3857: 		if c.options.AbsMetadataFile != "" {
		linker.go#L3877: 			if c.options.Mode == config.ModeBundle && !c.options.RemoveWhitespace && prevComment != compileResult.sourceIndex && len(compileResult.JS) > 0 {
		linker.go#L3915: 					if c.options.SourceMap != config.SourceMapNone {
		linker.go#L3921: 				if c.options.AbsMetadataFile != "" {
		linker.go#L3955: 		if c.options.OutputFormat == config.FormatIIFE {
		linker.go#L3974: 		if len(c.options.Footer) > 0 {
		linker.go#L3975: 			j.AddString(c.options.Footer)
		linker.go#L3979: 		if c.options.SourceMap != config.SourceMapNone {
		linker.go#L3983: 			switch c.options.SourceMap {
		linker.go#L4004: 				if c.options.AbsMetadataFile != "" {
		linker.go#L4015: 					if config.HasPlaceholder(c.options.ChunkPathTemplate, config.HashPlaceholder) {
		linker.go#L4019: 					relPath := config.TemplateToString(config.SubstituteTemplate(c.options.ChunkPathTemplate, config.PathPlaceholders{
		linker.go#L4022: 					})) + c.options.OutputExtensionJS
		linker.go#L4030: 				if c.options.SourceMap == config.SourceMapLinkedWithComment {
		linker.go#L4037: 					AbsPath:           c.fs.Join(c.options.AbsOutputDir, sourceMapRelDir, sourceMapBaseName),
		linker.go#L4051: 			if config.HasPlaceholder(c.options.ChunkPathTemplate, config.HashPlaceholder) {
		linker.go#L4055: 			relPath := config.TemplateToString(config.SubstituteTemplate(c.options.ChunkPathTemplate, config.PathPlaceholders{
		linker.go#L4058: 			})) + c.options.OutputExtensionJS
		linker.go#L4066: 		if c.options.AbsMetadataFile != "" {
		linker.go#L4075: 					js_printer.QuoteForJSON(path, c.options.ASCIIOnly), metaByteCount[path]))
		linker.go#L4085: 			AbsPath:           c.fs.Join(c.options.AbsOutputDir, chunk.relPath()),
		linker.go#L4096: 	prefix := c.options.GlobalName[0]
		linker.go#L4100: 	if c.options.RemoveWhitespace {
		linker.go#L4105: 	if js_printer.CanQuoteIdentifier(prefix, c.options.UnsupportedJSFeatures, c.options.ASCIIOnly) {
		linker.go#L4106: 		if c.options.ASCIIOnly {
		linker.go#L4107: 			prefix = string(js_printer.QuoteIdentifier(nil, prefix, c.options.UnsupportedJSFeatures))
		linker.go#L4111: 		prefix = fmt.Sprintf("this[%s]", js_printer.QuoteForJSON(prefix, c.options.ASCIIOnly))
		linker.go#L4115: 	for _, name := range c.options.GlobalName[1:] {
		linker.go#L4117: 		if js_printer.CanQuoteIdentifier(name, c.options.UnsupportedJSFeatures, c.options.ASCIIOnly) {
		linker.go#L4118: 			if c.options.ASCIIOnly {
		linker.go#L4119: 				name = string(js_printer.QuoteIdentifier(nil, name, c.options.UnsupportedJSFeatures))
		linker.go#L4123: 			prefix = fmt.Sprintf("%s[%s]", prefix, js_printer.QuoteForJSON(name, c.options.ASCIIOnly))
		linker.go#L4175: 				MangleSyntax:     c.options.MangleSyntax,
		linker.go#L4176: 				RemoveWhitespace: c.options.RemoveWhitespace,
		linker.go#L4177: 				ASCIIOnly:        c.options.ASCIIOnly,
		linker.go#L4213: 					RemoveWhitespace: c.options.RemoveWhitespace,
		linker.go#L4224: 		if c.options.AbsMetadataFile != "" {
		linker.go#L4234: 					js_printer.QuoteForJSON(c.res.PrettyPath(logger.Path{Text: importAbsPath, Namespace: "file"}), c.options.ASCIIOnly),
		linker.go#L4235: 					js_printer.QuoteForJSON(continueData.crossChunkImportRecords[i].Kind.StringForMetafile(), c.options.ASCIIOnly)))
		linker.go#L4248: 						js_printer.QuoteForJSON(file.source.PrettyPath, c.options.ASCIIOnly)))
		linker.go#L4260: 			if c.options.Mode == config.ModeBundle && !c.options.RemoveWhitespace {
		linker.go#L4272: 			if c.options.AbsMetadataFile != "" {
		linker.go#L4279: 					js_printer.QuoteForJSON(c.files[compileResult.sourceIndex].source.PrettyPath, c.options.ASCIIOnly),
		linker.go#L4296: 			if config.HasPlaceholder(c.options.ChunkPathTemplate, config.HashPlaceholder) {
		linker.go#L4300: 			relPath := config.TemplateToString(config.SubstituteTemplate(c.options.ChunkPathTemplate, config.PathPlaceholders{
		linker.go#L4303: 			})) + c.options.OutputExtensionCSS
		linker.go#L4311: 		if c.options.AbsMetadataFile != "" {
		linker.go#L4320: 			AbsPath:           c.fs.Join(c.options.AbsOutputDir, chunk.relPath()),
		linker.go#L4470: 			if !c.options.ExcludeSourcesContent {
		linker.go#L4497: 			if !c.options.ExcludeSourcesContent {
		linker.go#L4525: 		j.AddBytes(js_printer.QuoteForJSON(item.prettyPath, c.options.ASCIIOnly))
		linker.go#L4530: 	if !c.options.ExcludeSourcesContent {