Skip to content

Commit

Permalink
fix(docz-core): open js and ts loader scope of files
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Sep 7, 2018
1 parent 85e4083 commit 03c01b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docz-core/src/bundlers/webpack/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const js = (config: Config, args: Args) => {
.rule('js')
.test(/\.(js|jsx|mjs)$/)
.include.add(srcPath)
.add(paths.root)
.add(paths.docz)
.end()
.exclude.add(/node_modules/)
Expand All @@ -78,6 +79,7 @@ export const ts = (config: Config, args: Args) => {
.rule('ts')
.test(/\.(ts|tsx)$/)
.include.add(srcPath)
.add(paths.root)
.end()
.exclude.add(/node_modules/)
.end()
Expand Down

0 comments on commit 03c01b7

Please sign in to comment.