github.com/evanw/esbuild/internal/config.DotDefine.Parts (field)
10 uses
github.com/evanw/esbuild/internal/config (current package)
globals.go#L851: Parts []string
globals.go#L892: result.DotDefines[tail] = append(result.DotDefines[tail], DotDefine{Parts: parts, Data: DefineData{CanBeRemovedIfUnused: true}})
globals.go#L909: Parts: []string{"process", "env", "NODE_ENV"},
globals.go#L930: if arePartsEqual(parts, define.Parts) {
globals.go#L939: dotDefines = append(dotDefines, DotDefine{Parts: parts, Data: data})
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L9206: if len(define.Parts) == len(parts) {
js_parser.go#L9208: if parts[i] != define.Parts[i] {
js_parser.go#L9872: if p.isDotDefineMatch(expr, define.Parts) {
js_parser.go#L10748: if p.isDotDefineMatch(expr, define.Parts) {
js_parser.go#L10764: p.warnAboutLackOfDefine(strings.Join(define.Parts, "."), r)
 |
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. |