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

Function setupEnvironment

packages/vite/src/node/build.ts:1890–1894  ·  view source on GitHub ↗
(name: string, config: ResolvedConfig)

Source from the content-addressed store, hash-verified

1888 }
1889
1890 async function setupEnvironment(name: string, config: ResolvedConfig) {
1891 const environment = await config.build.createEnvironment(name, config)
1892 await environment.init()
1893 environments[name] = environment
1894 }
1895
1896 if (useLegacyBuilder) {
1897 await setupEnvironment(config.build.ssr ? 'ssr' : 'client', config)

Callers 1

createBuilderFunction · 0.85

Calls 1

initMethod · 0.45

Tested by

no test coverage detected