Prepare for vitest in shared-components (#31820)

* Use typescript for vite config

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch shared-components to ESM

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove stale aliases

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove reference to element-web files from shared-components

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove spurious node polyfill

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2026-01-21 10:04:27 +00:00
committed by GitHub
parent 2f44744f8b
commit 819d361a91
17 changed files with 3143 additions and 73 deletions
+2 -1
View File
@@ -221,8 +221,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
// Make shared-components imports resolve to EW deps
"counterpart": path.resolve(__dirname, "node_modules/counterpart"),
"@vector-im/compound-web": path.resolve(__dirname, "node_modules/@vector-im/compound-web"),
},
fallback: {
// Mock out the NodeFS module: The opus decoder imports this wrongly.