Storybook includes a pre-configured Webpack setup. Up until Webpack v4, it was possible to utilize tsconfig-paths-webpack-plugin and define custom tsconfig (or any other plugin) like so:
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
module.exports = {
...,
webpackFinal: async (config) => {
config.resolve.plugins = [new TsconfigPathsPlugin()];
return config;
}
Has anyone successfully implemented this with Webpack v5 or tried using a different package for similar functionality?