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

Method fromFile

src/utils/PHP_Code.ts:17–22  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

15 mapping: Record<string, string> = {};
16
17 static fromFile(file: string) {
18 const inst = new this(readFile(file));
19 inst.file = file;
20
21 return inst;
22 }
23 constructor(code: string) {
24 this.code = code;
25

Callers 3

configResolvedFunction · 0.80
handleHotUpdateFunction · 0.80
loadFunction · 0.80

Calls 1

readFileFunction · 0.90

Tested by

no test coverage detected