MCPcopy Create free account
hub / github.com/Borrus-sudo/tinypages / editEntryFile

Function editEntryFile

packages/vite/src/node/plugin.ts:32–40  ·  view source on GitHub ↗
(id: string, code: string)

Source from the content-addressed store, hash-verified

30 return "";
31 },
32 async editEntryFile(id: string, code: string) {
33 for (let m of modules) {
34 const new_code = await m?.editEntryFile(id, code);
35 if (new_code) {
36 code = new_code;
37 }
38 }
39 return code;
40 },
41 async renderComponent(c, extra) {
42 for (let m of modules) {
43 const stringifiedComponent = await m?.renderComponent(c, extra);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected