Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ export default defineConfig(({ command, mode }) => {
template: 'treemap',
}),
].filter(Boolean),
resolve: {
// Share Three.js without bypassing its package exports with a directory alias.
dedupe: ['three'],
},
// Recharts is imported by lazy-loaded pages. Its published ESM files use
// bare es-toolkit/compat/* imports, so prebundle it before a lazy tab can
// expose those specifiers directly to the browser.
Expand Down
4 changes: 4 additions & 0 deletions client/vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { vitestCiPool } from '../scripts/vitestCiPool.js';

export default defineConfig({
plugins: [react()],
resolve: {
// Share Three.js without bypassing its package exports with a directory alias.
dedupe: ['three'],
},
test: {
// Four DOM workers exhausted Testing Library's existing 3s async budget
// on the public runner before ChiefOfStaff's config panel settled. Keep the
Expand Down