Skip to content

Commit

Permalink
fix(docz-utils): add docz imports on react live scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Mar 12, 2019
1 parent c63bbc8 commit 01004ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/docz-utils/src/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ const traverseOnImports = (fn: (path: any) => any[]) => (node: any) => {
traverse(ast, {
enter(path: any): void {
if (path.isImportDeclaration()) {
if (get(path, 'node.source.value') !== 'docz') {
populated = populated.concat(fn(path))
}
populated = populated.concat(fn(path))
return
}
},
Expand Down

0 comments on commit 01004ed

Please sign in to comment.