Set up Storybook again

This commit is contained in:
Robin
2026-03-30 17:59:29 +02:00
parent 40fdef89eb
commit 2de151d94d
9 changed files with 1030 additions and 49 deletions

View File

@@ -66,17 +66,19 @@ export default ({
);
}
plugins.push(
createHtmlPlugin({
entry: "src/main.tsx",
inject: {
data: {
brand: env.VITE_PRODUCT_NAME || "Element Call",
packageType: process.env.VITE_PACKAGE,
if (!process.env.STORYBOOK) {
plugins.push(
createHtmlPlugin({
entry: "src/main.tsx",
inject: {
data: {
brand: env.VITE_PRODUCT_NAME || "Element Call",
packageType: process.env.VITE_PACKAGE,
},
},
},
}),
);
}),
);
}
// The crypto WASM module is imported dynamically. Since it's common
// for developers to use a linked copy of matrix-js-sdk or Rust