github.com/evanw/esbuild/internal/js_ast.AST.HasCommonJSFeatures (method)

3 uses

	github.com/evanw/esbuild/internal/js_ast (current package)
		js_ast.go#L1721: func (ast *AST) HasCommonJSFeatures() bool {

	github.com/evanw/esbuild/internal/bundler
		linker.go#L470: 				cjsStyleExports: repr.ast.HasCommonJSFeatures() ||
		linker.go#L477: 				skipCallingToModule:      repr.ast.ExportKeyword.Len > 0 && !repr.ast.HasCommonJSFeatures(),