Fix building apidoc on windows

This commit is contained in:
Maximilian Krög
2020-02-28 21:44:06 +01:00
parent 6370175b28
commit d28be3c160

View File

@@ -115,7 +115,7 @@ exports.astNodeVisitor = {
visitNode: function(node, e, parser, currentSourceName) { visitNode: function(node, e, parser, currentSourceName) {
if (node.type === 'Identifier' && node.parent.type === 'ExportDefaultDeclaration') { if (node.type === 'Identifier' && node.parent.type === 'ExportDefaultDeclaration') {
const modulePath = path.relative(moduleRoot, currentSourceName).replace(/\.js$/, ''); const modulePath = path.relative(moduleRoot, currentSourceName).replace(/\.js$/, '');
defaultExports['module:' + modulePath + '~' + node.name] = true; defaultExports['module:' + modulePath.replace(/\\/g, '/') + '~' + node.name] = true;
} }
} }
}; };