MCPcopy Create free account
hub / github.com/Power-Playground/app / script

Function script

vite.config.ts:109–118  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

107 transform() {
108 return {
109 script(node) {
110 if (node.name === 'jotai') {
111 if (node.url?.size) {
112 const normal = Array.from( node.url.values())[0]
113 node.url = new Set()
114 node.extra.spare.forEach((el: string) => node.url?.add(new URL(`${node.extra.name}@${node.extra.version}/${el}`, unpkg).href))
115 node.url.add(normal)
116 }
117 }
118 }
119 }
120 }
121 }),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected