const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin') module.exports = { stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.tsx'], addons: [ '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions' ], framework: '@storybook/react', webpackFinal: async (config) => { config.resolve.plugins = [ ...(config.resolve.plugins || []), new TsconfigPathsPlugin({ extensions: config.resolve.extensions }) ] return config } }