MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / manualChunks

Function manualChunks

apps/ui/vite.config.ts:198–216  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

196 rollupOptions: {
197 output: {
198 manualChunks(id: string): string | undefined {
199 if (id.includes("node_modules/react-router")) return "router";
200 if (id.includes("node_modules/@tanstack/react-query")) {
201 return "query";
202 }
203 if (
204 id.includes("node_modules/react-i18next") ||
205 id.includes("node_modules/i18next")
206 ) {
207 return "i18n";
208 }
209 if (
210 id.includes("node_modules/react-dom") ||
211 id.includes("node_modules/react/")
212 ) {
213 return "react";
214 }
215 return undefined;
216 }
217 }
218 }
219 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected