Skip to content

Commit

Permalink
Merge pull request #5929 from dfee/patch-3
Browse files Browse the repository at this point in the history
updated docs to reflect proper params passed to webpack.config.js
  • Loading branch information
shilman authored Mar 7, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 378a8b5 + eee5287 commit b19ae6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/configurations/typescript-config/index.md
Original file line number Diff line number Diff line change
@@ -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'),

0 comments on commit b19ae6b

Please sign in to comment.