Add VideoGrid storybook

This commit is contained in:
Robert Long 2022-01-07 16:20:55 -08:00
commit 19fe760833
4 changed files with 66 additions and 3 deletions

View file

@ -1,4 +1,5 @@
const svgrPlugin = require("vite-plugin-svgr");
const path = require("path");
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
@ -9,6 +10,14 @@ module.exports = {
},
async viteFinal(config) {
config.plugins.push(svgrPlugin());
config.resolve = config.resolve || {};
config.resolve.alias = config.resolve.alias || {};
config.resolve.alias["$(res)"] = path.resolve(
__dirname,
"../node_modules/matrix-react-sdk/res"
);
config.resolve.dedupe = config.resolve.dedupe || [];
config.resolve.dedupe.push("react", "react-dom", "matrix-js-sdk");
return config;
},
};