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

Function getDepsOptimizer

packages/vite/src/node/plugins/resolve.ts:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 !partialEnv.config.isBundled &&
242 !isDepOptimizationDisabled(partialEnv.config.optimizeDeps)
243 const getDepsOptimizer = () => {
244 const env = getEnv()
245 if (env.mode !== 'dev')
246 throw new Error('The environment mode should be dev')
247 if (!env.depsOptimizer)
248 throw new Error('The environment should have a depsOptimizer')
249 return env.depsOptimizer
250 }
251
252 const options: InternalResolveOptions = {
253 ...partialEnv.config.resolve,

Callers 1

oxcResolvePluginFunction · 0.85

Calls 1

getEnvFunction · 0.85

Tested by

no test coverage detected