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