MCPcopy
hub / github.com/esm-dev/esm.sh / getNodeEnv

Method getNodeEnv

server/build_resolver.go:1134–1139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1132}
1133
1134func (ctx *BuildContext) getNodeEnv() string {
1135 if ctx.dev {
1136 return "development"
1137 }
1138 return "production"
1139}
1140
1141func (ctx *BuildContext) isDenoTarget() bool {
1142 return ctx.target == "deno" || ctx.target == "denonext"

Callers 2

buildModuleMethod · 0.95
cjsModuleLexerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected