2022-02-27 04:41:30 +00:00
|
|
|
//const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
2022-04-12 05:41:36 +00:00
|
|
|
const custom = require("../webpack.config.js");
|
2022-02-27 04:41:30 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-04-12 05:41:36 +00:00
|
|
|
webpackFinal: async (config) => {
|
2022-03-24 23:57:52 +00:00
|
|
|
config.resolve.alias = custom.resolve.alias;
|
2022-04-12 05:41:36 +00:00
|
|
|
return {
|
|
|
|
...config,
|
|
|
|
module: {
|
|
|
|
...config.module,
|
|
|
|
rules: config.module.rules.concat(
|
|
|
|
custom.module.rules.filter((x) => x.loader === "ts-loader")
|
|
|
|
),
|
|
|
|
},
|
|
|
|
};
|
2022-03-24 23:57:52 +00:00
|
|
|
},
|
2022-04-12 05:41:36 +00:00
|
|
|
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
|
|
addons: [
|
2022-02-27 04:41:30 +00:00
|
|
|
"@storybook/addon-links",
|
|
|
|
"@storybook/addon-essentials",
|
2022-04-12 05:41:36 +00:00
|
|
|
"@storybook/preset-create-react-app",
|
2022-02-27 04:41:30 +00:00
|
|
|
],
|
2022-04-12 05:41:36 +00:00
|
|
|
framework: "@storybook/react",
|
|
|
|
core: {
|
|
|
|
builder: "webpack5",
|
2022-03-01 07:43:35 +00:00
|
|
|
},
|
|
|
|
typescript: {
|
|
|
|
check: false,
|
|
|
|
checkOptions: {},
|
2022-04-12 05:41:36 +00:00
|
|
|
reactDocgen: "react-docgen-typescript",
|
2022-03-01 07:43:35 +00:00
|
|
|
reactDocgenTypescriptOptions: {
|
|
|
|
shouldExtractLiteralValuesFromEnum: true,
|
2022-04-12 05:41:36 +00:00
|
|
|
propFilter: (prop) =>
|
|
|
|
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
|
2022-03-01 07:43:35 +00:00
|
|
|
},
|
|
|
|
},
|
2022-04-12 05:41:36 +00:00
|
|
|
};
|