mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
16 lines
494 B
JavaScript
16 lines
494 B
JavaScript
const path = require("path");
|
|
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
|
|
|
|
module.exports = {
|
|
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
|
|
webpackFinal: async (config, { configType }) => {
|
|
config.resolve.plugins = [
|
|
new TsconfigPathsPlugin({
|
|
configFile: path.resolve(__dirname, "../tsconfig.json"),
|
|
}),
|
|
];
|
|
|
|
return config;
|
|
},
|
|
};
|