Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -3,9 +3,16 @@ const NODE_MODULES_SEGMENT = "/node_modules/";
|
||||
const CHUNK_MATCHERS: Array<{ chunkName: string; packages: string[] }> = [
|
||||
{ chunkName: "vendor-react", packages: ["react", "react-dom", "react-router", "scheduler", "use-sync-external-store"] },
|
||||
{ chunkName: "vendor-core-utils", packages: ["clsx", "tailwind-merge", "class-variance-authority"] },
|
||||
// Keep the shared TypeScript runtime helpers out of lazily loaded vendor
|
||||
// chunks. Otherwise Rollup can pull a 1+ MiB AWS chunk into SSR startup just
|
||||
// because the main bundle also needs `__assign`/`__extends`.
|
||||
{ chunkName: "vendor-tslib", packages: ["tslib"] },
|
||||
{ chunkName: "vendor-charts", packages: ["recharts", "victory-vendor", "d3-", "d3"] },
|
||||
{ chunkName: "vendor-markdown", packages: ["marked", "katex"] },
|
||||
{ chunkName: "vendor-monaco", packages: ["@monaco-editor/react", "monaco-editor"] },
|
||||
// Monaco is already behind a client-only dynamic import. Let Rollup keep
|
||||
// that complete dependency graph at the lazy boundary: assigning it to a
|
||||
// manual chunk can absorb Vite's preload helper and make the editor part of
|
||||
// every route's static graph.
|
||||
{ chunkName: "vendor-editor-tiptap", packages: ["@tiptap/"] },
|
||||
{ chunkName: "vendor-editor-prosemirror", packages: ["prosemirror-"] },
|
||||
{ chunkName: "vendor-pdf", packages: ["@react-pdf/renderer"] },
|
||||
@@ -44,3 +51,14 @@ export function getManualChunkName(id: string): string | undefined {
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getChunkFileName(moduleIds: readonly string[]): string {
|
||||
const normalizedIds = moduleIds.map(normalizeModuleId);
|
||||
if (normalizedIds.some((id) => id.includes("/node_modules/monaco-editor/") || id.includes("/node_modules/@monaco-editor/react/"))) {
|
||||
return "assets/lazy-monaco-[name]-[hash].js";
|
||||
}
|
||||
if (normalizedIds.some((id) => id.includes("/node_modules/pdfjs-dist/"))) {
|
||||
return "assets/lazy-pdfjs-[name]-[hash].js";
|
||||
}
|
||||
return "assets/[name]-[hash].js";
|
||||
}
|
||||
Reference in new issue
Block a user