Make Vite work with matrix-widget-api

This commit is contained in:
Robin Townsend 2022-07-15 11:24:38 -04:00
parent 7fab4ca1ba
commit fc26bef80a

View file

@ -41,6 +41,12 @@ export default defineConfig(({ mode }) => {
},
},
resolve: {
alias: {
// matrix-widget-api has its transpiled lib/index.js as its entry point,
// which Vite for some reason refuses to work with, so we point it to
// src/index.ts instead
"matrix-widget-api": "matrix-widget-api/src/index.ts",
},
dedupe: [
"react",
"react-dom",