MCPcopy Create free account
hub / github.com/donnikitos/vite-plugin-php / write

Method write

src/utils/PHP_Code.ts:58–61  ·  view source on GitHub ↗
(file: string, mapping = false)

Source from the content-addressed store, hash-verified

56 }
57
58 write(file: string, mapping = false) {
59 writeFile(file, this.code);
60 mapping && writeFile(file + '.json', JSON.stringify(this.mapping));
61 }
62
63 static unescape(code: string, mapping: Record<string, string>) {
64 let out = code;

Callers 3

configResolvedFunction · 0.80
configureServerFunction · 0.80
handleHotUpdateFunction · 0.80

Calls 1

writeFileFunction · 0.90

Tested by

no test coverage detected