We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a407818 commit 3486af5Copy full SHA for 3486af5
.changeset/rotten-suns-reply.md
@@ -0,0 +1,5 @@
1
+---
2
+'@react-docgen/cli': patch
3
4
+
5
+Fix bug with loading CommonJS files
packages/react-docgen-cli/src/utils/importFile.ts
@@ -13,7 +13,7 @@ export default async function importFile<T>(
13
pathToFileURL(require.resolve(importSpecifier, resolveOptions)).href
14
);
15
16
- return importedFile.default ? importedFile.default : importFile;
+ return importedFile.default ? importedFile.default : importedFile;
17
} catch (error) {
18
if (
19
error instanceof Error &&
0 commit comments