const github.com/evanw/esbuild/internal/config.FormatCommonJS
12 uses
github.com/evanw/esbuild/internal/config (current package)
config.go#L111: FormatCommonJS
config.go#L129: case FormatCommonJS:
github.com/evanw/esbuild/internal/bundler
linker.go#L520: if repr.ast.ExportKeyword.Len > 0 && (options.OutputFormat == config.FormatCommonJS ||
linker.go#L529: if c.options.OutputFormat == config.FormatCommonJS {
linker.go#L1278: if (c.options.OutputFormat == config.FormatPreserve || c.options.OutputFormat == config.FormatCommonJS) &&
linker.go#L1366: c.options.OutputFormat != config.FormatCommonJS) {
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#L1804: case config.FormatCommonJS:
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L10772: if p.options.outputFormat == config.FormatCommonJS {
github.com/evanw/esbuild/pkg/api
api_impl.go#L107: return config.FormatCommonJS
api_impl.go#L742: options.OutputFormat = config.FormatCommonJS
![]() |
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. |