Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 01004ed

Browse files
committed
fix(docz-utils): add docz imports on react live scope
1 parent c63bbc8 commit 01004ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/docz-utils/src/imports.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ const traverseOnImports = (fn: (path: any) => any[]) => (node: any) => {
1616
traverse(ast, {
1717
enter(path: any): void {
1818
if (path.isImportDeclaration()) {
19-
if (get(path, 'node.source.value') !== 'docz') {
20-
populated = populated.concat(fn(path))
21-
}
19+
populated = populated.concat(fn(path))
2220
return
2321
}
2422
},

0 commit comments

Comments
 (0)