MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getEnabledFeatures

Function getEnabledFeatures

scripts/vite-plugin-feature-flags.ts:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * Collect enabled feature flags from defaults + env vars.
6 */
7export function getEnabledFeatures(): Set<string> {
8 const envFeatures = Object.keys(process.env)
9 .filter(k => k.startsWith('FEATURE_'))
10 .map(k => k.replace('FEATURE_', ''))
11 return new Set([...DEFAULT_BUILD_FEATURES, ...envFeatures])
12}
13
14// Regex to match feature('FLAG_NAME') calls with string literal arguments
15const FEATURE_CALL_RE = /feature\s*\(\s*['"]([\w]+)['"]\s*\)/g

Callers 1

featureFlagsPluginFunction · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected