From eee5287a229656e0b7ff6cd05fef1ffb8a16b9da Mon Sep 17 00:00:00 2001 From: Devin Fee Date: Wed, 6 Mar 2019 10:13:50 -0800 Subject: [PATCH] Update index.md updated docs to reflect proper params passed to webpack.config.js --- docs/src/pages/configurations/typescript-config/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/configurations/typescript-config/index.md b/docs/src/pages/configurations/typescript-config/index.md index d1ed0287a283..3619f781827c 100644 --- a/docs/src/pages/configurations/typescript-config/index.md +++ b/docs/src/pages/configurations/typescript-config/index.md @@ -25,7 +25,7 @@ We first have to use the [custom Webpack config in full control mode, extending ```js const path = require('path'); -module.exports = (baseConfig, env, config) => { +module.exports = ({ config }) => { config.module.rules.push({ test: /\.(ts|tsx)$/, use: [{ @@ -90,7 +90,7 @@ yarn add -D @types/storybook__react # typings We first have to use the [custom Webpack config in full control mode, extending default configs](/configurations/custom-webpack-config/#full-control-mode--default) by creating a `webpack.config.js` file in our Storybook configuration directory (by default, it’s `.storybook`): ```js -module.exports = (baseConfig, env, config) => { +module.exports = ({ config }) => { config.module.rules.push({ test: /\.(ts|tsx)$/, loader: require.resolve('babel-loader'),