Skip to content

Commit

Permalink
fix(docz-core): module rule test for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed May 29, 2018
1 parent 899b1e3 commit bdeffc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docz-core/src/bundlers/webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const createConfig = (babelrc: BabelRC) => (

config.module
.rule('js')
.test(/\.js?x$/)
.test(/\.(js|jsx|mjs)$/)
.include.add(srcPath)
.add(paths.docz)
.end()
Expand All @@ -208,7 +208,7 @@ export const createConfig = (babelrc: BabelRC) => (
if (args.typescript) {
config.module
.rule('ts')
.test(/\.ts?x$/)
.test(/\.(ts|tsx)$/)
.include.add(srcPath)
.end()
.exclude.add(/node_modules/)
Expand Down

0 comments on commit bdeffc1

Please sign in to comment.