We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d3bcf commit bab2660Copy full SHA for bab2660
lib/loaders.js
@@ -17,10 +17,10 @@ const HANDLEBARS_REGEX = /\.(hbs|handlebars)$/;
17
18
const loadParser = config => new Promise((resolve, reject) => {
19
20
- const parserString = `doxdox-parser-${config.parser}`;
21
-
22
try {
23
+ const parserString = `doxdox-parser-${config.parser}`;
+
24
if (require.resolve(parserString)) {
25
26
resolve(require(parserString));
0 commit comments