MCPcopy
hub / github.com/vitejs/vite / generateBundle

Function generateBundle

playground/lib/vite.config.js:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 {
33 name: 'emit-index',
34 generateBundle() {
35 this.emitFile({
36 type: 'asset',
37 fileName: 'index.html',
38 source: fs.readFileSync(
39 path.resolve(import.meta.dirname, 'index.dist.html'),
40 'utf-8',
41 ),
42 })
43 },
44 },
45 ],
46})

Callers

nothing calls this directly

Calls 2

emitFileMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected