MCPcopy
hub / github.com/sonofmagic/weapp-tailwindcss / createSourceScanPattern

Function createSourceScanPattern

packages/postcss/src/source-scan.ts:85–87  ·  view source on GitHub ↗
(extensions = DEFAULT_SOURCE_SCAN_EXTENSIONS)

Source from the content-addressed store, hash-verified

83]
84
85export function createSourceScanPattern(extensions = DEFAULT_SOURCE_SCAN_EXTENSIONS) {
86 return `**/*.{${extensions.join(',')}}`
87}
88
89export const FULL_SOURCE_SCAN_PATTERN = createSourceScanPattern(FULL_SOURCE_SCAN_EXTENSIONS)
90export const FULL_SOURCE_SCAN_EXTENSION_RE = new RegExp(`\\.(?:${FULL_SOURCE_SCAN_EXTENSIONS.map(extension => extension.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('|')})$`)

Callers 7

source-files.tsFile · 0.90
index.tsFile · 0.90
source-scan.tsFile · 0.70
resolveCssSourceEntriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected