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

Function parseRelAttr

packages/vite/src/node/plugins/html.ts:1085–1087  ·  view source on GitHub ↗
(attr: string)

Source from the content-addressed store, hash-verified

1083}
1084
1085export function parseRelAttr(attr: string): string[] {
1086 return attr.split(spaceRe).map((v) => v.toLowerCase())
1087}
1088
1089// <tag style="... url(...) or image-set(...) ..."></tag>
1090// extract inline styles as virtual css

Callers 2

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected