MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / closeBundle

Function closeBundle

plugins/vite.config.ts:63–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 apply: 'build',
62 enforce: 'post',
63 async closeBundle() {
64 const code = await fs.readFile(root('dist/preload.js'), 'utf-8');
65 const header = generateHeader(code, 'preload_script');
66 await fs.writeFile(root('dist/preload.g.h'), header, 'utf-8');
67 }
68 }
69 ]
70 }

Callers

nothing calls this directly

Calls 2

rootFunction · 0.85
generateHeaderFunction · 0.85

Tested by

no test coverage detected