github.com/evanw/esbuild/internal/config.DefineData.CanBeRemovedIfUnused (field)
7 uses
github.com/evanw/esbuild/internal/config (current package)
globals.go#L826: CanBeRemovedIfUnused bool
globals.go#L838: if old.CanBeRemovedIfUnused {
globals.go#L839: new.CanBeRemovedIfUnused = true
globals.go#L890: result.IdentifierDefines[tail] = DefineData{CanBeRemovedIfUnused: true}
globals.go#L892: result.DotDefines[tail] = append(result.DotDefines[tail], DotDefine{Parts: parts, Data: DefineData{CanBeRemovedIfUnused: true}})
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L9929: if data.CanBeRemovedIfUnused {
js_parser.go#L10755: if define.Data.CanBeRemovedIfUnused {
![]() |
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. |