diff --git a/vite.config.js b/vite.config.js index 3b0c1e17..29d60587 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,6 +16,7 @@ limitations under the License. import { defineConfig } from "vite"; import svgrPlugin from "vite-plugin-svgr"; +import path from "path"; // https://vitejs.dev/config/ export default defineConfig({ @@ -25,4 +26,10 @@ export default defineConfig({ "/_matrix": "http://localhost:8008", }, }, + resolve: { + alias: { + "$(res)": path.resolve(__dirname, "node_modules/matrix-react-sdk/res"), + }, + dedupe: ["react", "react-dom"], + }, });