Skip to content

Commit 1b9112b

Browse files
committed
Revert "Combine two async imports into one by way of skin.ts"
This reverts commit e788433 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent e788433 commit 1b9112b

2 files changed

Lines changed: 11 additions & 26 deletions

File tree

‎src/vector/init.ts‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,17 @@ export async function loadSkin() {
123123
// the SDK until we have to in imports.
124124
console.log("Loading skin...");
125125
// load these async so that its code is not executed immediately and we can catch any exceptions
126-
const {sdk, skin} = await import(
127-
/* webpackChunkName: "skin" */
128-
/* webpackPreload: true */
129-
"./skin");
126+
const [sdk, skin] = await Promise.all([
127+
import(
128+
/* webpackChunkName: "matrix-react-sdk" */
129+
/* webpackPreload: true */
130+
"matrix-react-sdk"),
131+
import(
132+
/* webpackChunkName: "riot-web-component-index" */
133+
/* webpackPreload: true */
134+
// @ts-ignore - this module is generated so may fail lint
135+
"../component-index"),
136+
]);
130137
sdk.loadSkin(skin);
131138
console.log("Skin loaded!");
132139
}

‎src/vector/skin.ts‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)