From 01004ed28e195c4e083c63b53a52e4f3f05e85ad Mon Sep 17 00:00:00 2001 From: Pedro Nauck Date: Mon, 11 Mar 2019 21:31:03 -0300 Subject: [PATCH] fix(docz-utils): add docz imports on react live scope --- core/docz-utils/src/imports.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/docz-utils/src/imports.ts b/core/docz-utils/src/imports.ts index 5e2d96697..246cb0578 100644 --- a/core/docz-utils/src/imports.ts +++ b/core/docz-utils/src/imports.ts @@ -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 } },