Skip to content

Commit

Permalink
fix(docz-core): typescript loader config
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 17, 2018
1 parent 5fbea6a commit 01f568e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docz-core/src/webpack/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const js = (config: Config, args: Args) => {
.loader('happypack/loader?id=jsx')
.end()
.when(args.propsParser && args.typescript, rule =>
rule.use(require.resolve('react-docgen-typescript-loader'))
rule
.use('typescript')
.loader(require.resolve('react-docgen-typescript-loader'))
)
}

Expand Down

0 comments on commit 01f568e

Please sign in to comment.