UNPKG

enchoice-fabric-react-lib

Version:

This project was created to integrate Microsoft Fabric React

16 lines (15 loc) 553 B
const path = require("path"); const TSDocgenPlugin = require("react-docgen-typescript-webpack-plugin"); module.exports = (baseConfig, env, defaultConfig) => { defaultConfig.module.rules.push({ test: /\.(ts|tsx)$/, include: path.resolve(__dirname, "../src"), loader: require.resolve("awesome-typescript-loader"), options: { configFileName: ".storybook/tsconfig.json" } }); defaultConfig.plugins.push(new TSDocgenPlugin()); defaultConfig.resolve.extensions.push(".ts", ".tsx"); return defaultConfig; };