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

Function handler

packages/vite/src/node/plugins/prepareOutDir.ts:20–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 renderStart: {
19 order: 'pre',
20 handler() {
21 if (rendered.has(this.environment)) {
22 return
23 }
24
25 const { config } = this.environment
26 if (config.build.write) {
27 rendered.add(this.environment)
28 const { root, build: options } = config
29 const resolvedOutDirs = getResolvedOutDirs(
30 root,
31 options.outDir,
32 options.rolldownOptions.output,
33 )
34 const emptyOutDir = resolveEmptyOutDir(
35 options.emptyOutDir,
36 root,
37 resolvedOutDirs,
38 this.environment.logger,
39 )
40 prepareOutDir(resolvedOutDirs, emptyOutDir, this.environment)
41 }
42 },
43 },
44 }
45}

Callers

nothing calls this directly

Calls 5

getResolvedOutDirsFunction · 0.90
resolveEmptyOutDirFunction · 0.90
prepareOutDirFunction · 0.85
hasMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected