Skip to content

Commit 0469d8e

Browse files
authored
Add explicit code split on matrix-sdk-crypto-wasm to allow caching between deploys (#2823)
* Add explicit code split on matrix-sdk-crypto-wasm to allow caching between deploys * Comment on removing once matrix-org/matrix-sdk-crypto-wasm#167 lands
1 parent fc8da6e commit 0469d8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ export default defineConfig(({ mode }) => {
8282
// Default naming fallback
8383
return "assets/[name]-[hash][extname]";
8484
},
85+
manualChunks: {
86+
// we should be able to remove this one https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/167 lands
87+
"matrix-sdk-crypto-wasm": ["@matrix-org/matrix-sdk-crypto-wasm"],
88+
},
8589
},
8690
},
8791
},

0 commit comments

Comments
 (0)