Fix vite config for matrix-react-sdk

This commit is contained in:
Robert Long 2021-09-30 11:27:44 -07:00
parent 2f92150983
commit 373b412cae

View file

@ -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"],
},
});