We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f61e4 commit 96267e5Copy full SHA for 96267e5
1 file changed
src/index.ts
@@ -9,12 +9,12 @@ class EmptyPlugin {
9
10
let plugin: DocgenPluginType;
11
12
+// It should be possible to use the plugin without TypeScript.
13
+// In that case using it is a no-op.
14
try {
15
require.resolve("typescript");
16
plugin = require("./plugin").default;
17
} catch (error) {
- console.error(error);
-
18
plugin = EmptyPlugin as any;
19
}
20
0 commit comments