github.com/evanw/esbuild/internal/config.Options.OutputFormat (field)
44 uses
github.com/evanw/esbuild/internal/config (current package)
config.go#L215: OutputFormat Format
github.com/evanw/esbuild/internal/bundler
bundler.go#L1513: if options.Mode == config.ModeBundle && options.OutputFormat == config.FormatPreserve {
bundler.go#L1514: options.OutputFormat = config.FormatESModule
linker.go#L472: (repr.ast.HasLazyExport && c.options.Mode == config.ModeConvertFormat && !c.options.OutputFormat.KeepES6ImportExportSyntax()),
linker.go#L520: if repr.ast.ExportKeyword.Len > 0 && (options.OutputFormat == config.FormatCommonJS ||
linker.go#L521: (options.OutputFormat == config.FormatIIFE && len(options.GlobalName) > 0)) {
linker.go#L529: if c.options.OutputFormat == config.FormatCommonJS {
linker.go#L945: switch c.options.OutputFormat {
linker.go#L984: switch c.options.OutputFormat {
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#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#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#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#L3023: } else if c.options.OutputFormat.KeepES6ImportExportSyntax() {
linker.go#L3074: if !record.SourceIndex.IsValid() && c.options.OutputFormat.KeepES6ImportExportSyntax() {
linker.go#L3439: if c.options.OutputFormat == config.FormatIIFE {
linker.go#L3446: OutputFormat: c.options.OutputFormat,
linker.go#L3589: if c.options.OutputFormat.KeepES6ImportExportSyntax() {
linker.go#L3698: if c.options.OutputFormat == config.FormatIIFE {
linker.go#L3703: OutputFormat: c.options.OutputFormat,
linker.go#L3761: if c.options.OutputFormat == config.FormatIIFE {
linker.go#L3807: if c.options.OutputFormat.KeepES6ImportExportSyntax() {
linker.go#L3955: if c.options.OutputFormat == config.FormatIIFE {
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L309: outputFormat: options.OutputFormat,
github.com/evanw/esbuild/pkg/api
api_impl.go#L653: OutputFormat: validateFormat(buildOpts.Format),
api_impl.go#L736: } else if options.OutputFormat == config.FormatPreserve {
api_impl.go#L740: options.OutputFormat = config.FormatIIFE
api_impl.go#L742: options.OutputFormat = config.FormatCommonJS
api_impl.go#L744: options.OutputFormat = config.FormatESModule
api_impl.go#L751: } else if options.OutputFormat != config.FormatPreserve {
api_impl.go#L756: if options.CodeSplitting && options.OutputFormat != config.FormatESModule {
api_impl.go#L1089: OutputFormat: validateFormat(transformOpts.Format),
api_impl.go#L1118: if options.OutputFormat != config.FormatPreserve {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |