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 https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/167 lands
This commit is contained in:
Hugh Nimmo-Smith
2024-11-23 09:00:43 +00:00
committed by GitHub
parent fc8da6ef58
commit 0469d8ef56

View File

@@ -82,6 +82,10 @@ export default defineConfig(({ mode }) => {
// Default naming fallback
return "assets/[name]-[hash][extname]";
},
manualChunks: {
// we should be able to remove this one https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/167 lands
"matrix-sdk-crypto-wasm": ["@matrix-org/matrix-sdk-crypto-wasm"],
},
},
},
},