MCPcopy Create free account
hub / github.com/adobe/react-spectrum / manualChunks

Function manualChunks

examples/s2-vite-project/vite.config.ts:39–43  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

37 // Because atomic CSS has so much overlap between components, loading all CSS up front results in
38 // smaller bundles instead of producing duplication between pages.
39 manualChunks(id) {
40 if (/macro-(.*)\.css$/.test(id) || /@react-spectrum\/s2\/.*\.css$/.test(id)) {
41 return 's2-styles';
42 }
43 }
44 }
45 }
46 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected