MCPcopy Create free account
hub / github.com/arktypeio/arktype / targetsBrowser

Function targetsBrowser

ark/aot/unplugin.ts:3083–3090  ·  view source on GitHub ↗
(
	target: BundlerCompiler["options"]["target"]
)

Source from the content-addressed store, hash-verified

3081// "web", a browserslist query or neither set, which webpack and Rspack read
3082// as one or the other; unknown where it's set false, for a plugin to decide
3083const targetsBrowser = (
3084 target: BundlerCompiler["options"]["target"]
3085): boolean | undefined =>
3086 target === false ? undefined
3087 : target === undefined ? true
3088 : [target]
3089 .flat()
3090 .some(name => name === "web" || name.startsWith("browserslist"))
3091
3092interface FarmConfig {
3093 root?: string | undefined

Callers 1

environmentOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected