Skip to content

Commit 77c41d6

Browse files
authored
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 1983d06. * Revert "fix: exclude counterpart from build" This reverts commit 8e41b13. * fix: force EW and shared components to use EW counterpart
1 parent 9e1d036 commit 77c41d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ module.exports = (env, argv) => {
214214

215215
// Define a variable so the i18n stuff can load
216216
"$webapp": path.resolve(__dirname, "webapp"),
217+
218+
// Make shared-components imports resolve to EW counterpart
219+
"counterpart": path.resolve(__dirname, "node_modules/counterpart"),
217220
},
218221
fallback: {
219222
// Mock out the NodeFS module: The opus decoder imports this wrongly.

0 commit comments

Comments
 (0)