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
5 changes: 5 additions & 0 deletions packages/admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,10 @@ export default defineConfig(({ command }) => ({
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
// lingui declares babel as optional peers, and this workspace resolves two
// babel majors, so pnpm materializes one @lingui/react per peer context.
// Two copies mean two LinguiContexts and `useLingui()` reads a null one in
// whichever chunk lost the race. Pin the bundle to a single copy.
dedupe: ["@lingui/react", "@lingui/core"],
},
}));
Loading
Loading