MCPcopy
hub / github.com/vitejs/vite / filter

Function filter

packages/vite/src/node/assetSource.ts:92–108  ·  view source on GitHub ↗
({ attributes })

Source from the content-addressed store, hash-verified

90 meta: {
91 srcAttributes: ['content'],
92 filter({ attributes }) {
93 if (
94 attributes.name &&
95 ALLOWED_META_NAME.includes(attributes.name.trim().toLowerCase())
96 ) {
97 return true
98 }
99
100 if (
101 attributes.property &&
102 ALLOWED_META_PROPERTY.includes(attributes.property.trim().toLowerCase())
103 ) {
104 return true
105 }
106
107 return false
108 },
109 },
110}
111

Callers 8

handleAttributeKeyFunction · 0.85
resolveIdMethod · 0.85
loadMethod · 0.85
transformMethod · 0.85
transformFunction · 0.85
createFilterFunction · 0.85
transformFunction · 0.85
transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected