From 03331c44276ec56e9f235e4d5ee75030455a753f Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 19 Sep 2023 15:47:08 +0200 Subject: build(deps): bump all dependencies * MDX type has changed so some components props had to be updated * Since Storybook now supports TS, I renamed the main/preview files --- .storybook/main.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .storybook/main.js (limited to '.storybook/main.js') diff --git a/.storybook/main.js b/.storybook/main.js deleted file mode 100644 index ca18e6b..0000000 --- a/.storybook/main.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @typedef {import('webpack').Configuration} WebpackConfig - */ - -const storybookConfig = { - stories: ['../src/**/*.stories.@(md|mdx|js|jsx|ts|tsx)'], - addons: [ - '@storybook/addon-links', - '@storybook/addon-essentials', - '@storybook/addon-interactions', - 'storybook-addon-next', - 'storybook-dark-mode', - ], - framework: '@storybook/react', - core: { - builder: 'webpack5', - }, - staticDirs: ['../public'], - /** - * @param {WebpackConfig} config - * @return {Promise} - */ - webpackFinal: async (config) => { - // Use SVGR for SVG files. See: https://medium.com/@derek_19900/config-storybook-4-to-use-svgr-webpack-plugin-22cb1152f004 - const rules = config.module.rules; - const fileLoaderRule = rules.find((rule) => rule.test.test('.svg')); - fileLoaderRule.exclude = /\.svg$/; - rules.push({ - test: /\.svg$/, - use: [{ loader: '@svgr/webpack', options: { dimensions: false } }], - }); - - /** @type {import('next').NextConfig} */ - const nextConfig = require('../next.config'); - - return { ...config, ...nextConfig.webpack }; - }, -}; - -module.exports = storybookConfig; -- cgit v1.2.3