Skip to content

Commit a8c3460

Browse files
committed
clean up
1 parent 2f92f97 commit a8c3460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Markdoc = require('@markdoc/markdoc');
55
const DEFAULT_SCHEMA_PATH = './markdoc';
66

77
function normalize(s) {
8-
return s.replace(/\\/g, '\\\\');
8+
return s.replace(/\\/g, path.win32.sep.repeat(2));
99
}
1010

1111
async function gatherPartials(ast, schemaDir) {
@@ -253,7 +253,7 @@ module.exports = async function loader(source) {
253253
const result = await load.call(this, source);
254254
callback(null, result);
255255
} catch (error) {
256-
console.log(error);
256+
console.error(error);
257257
callback(error);
258258
}
259259
};

0 commit comments

Comments
 (0)