MCPcopy Create free account
hub / github.com/TanStack/router / configEnvironment

Function configEnvironment

packages/solid-start/src/plugin/vite.ts:39–56  ·  view source on GitHub ↗
(environmentName, options)

Source from the content-addressed store, hash-verified

37 }
38 },
39 configEnvironment(environmentName, options) {
40 return {
41 optimizeDeps:
42 environmentName === START_ENVIRONMENT_NAMES.client ||
43 (environmentName === START_ENVIRONMENT_NAMES.server &&
44 // This indicates that the server environment has opted in to dependency optimization
45 options.optimizeDeps?.noDiscovery === false)
46 ? {
47 // As `@tanstack/solid-start` depends on `@tanstack/solid-router`, we should exclude both.
48 exclude: [
49 '@tanstack/solid-start',
50 '@tanstack/solid-router',
51 '@tanstack/start-static-server-functions',
52 ],
53 }
54 : undefined,
55 }
56 },
57 },
58 tanStackStartVite(corePluginOpts, options),
59 ]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected