From d28be3c1600b5152a5802702a4e8677ce90ffdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Fri, 28 Feb 2020 21:44:06 +0100 Subject: [PATCH] Fix building apidoc on windows --- config/jsdoc/api/plugins/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/jsdoc/api/plugins/api.js b/config/jsdoc/api/plugins/api.js index b5ff2190ab..edeaf1b3b9 100644 --- a/config/jsdoc/api/plugins/api.js +++ b/config/jsdoc/api/plugins/api.js @@ -115,7 +115,7 @@ exports.astNodeVisitor = { visitNode: function(node, e, parser, currentSourceName) { if (node.type === 'Identifier' && node.parent.type === 'ExportDefaultDeclaration') { const modulePath = path.relative(moduleRoot, currentSourceName).replace(/\.js$/, ''); - defaultExports['module:' + modulePath + '~' + node.name] = true; + defaultExports['module:' + modulePath.replace(/\\/g, '/') + '~' + node.name] = true; } } };