From 77c41d6789afd8610144a6d08c15c18b697bc8bc Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 21 Oct 2025 10:25:07 +0200 Subject: [PATCH] Fix translation in dev mode (#31045) * fix: use EW and shared component counterpart * fix: exclude counterpart from build * Revert "fix: use EW and shared component counterpart" This reverts commit 1983d063c6b75a4f6e193e3c57e3bd9bae0888de. * Revert "fix: exclude counterpart from build" This reverts commit 8e41b137fc0b3d88c38921ac5762836e29c062f8. * fix: force EW and shared components to use EW counterpart --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index e83f6f4a60..b979ded2b2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -214,6 +214,9 @@ module.exports = (env, argv) => { // Define a variable so the i18n stuff can load "$webapp": path.resolve(__dirname, "webapp"), + + // Make shared-components imports resolve to EW counterpart + "counterpart": path.resolve(__dirname, "node_modules/counterpart"), }, fallback: { // Mock out the NodeFS module: The opus decoder imports this wrongly.