Merge pull request #498 from mrkishi/build-dir

Add missing posixify to `build_dir`
This commit is contained in:
Rich Harris
2018-10-27 10:17:58 -04:00
committed by GitHub

View File

@@ -226,8 +226,8 @@ function generate_server(
error error
};`.replace(/^\t\t/gm, '').trim(); };`.replace(/^\t\t/gm, '').trim();
const build_dir = path.relative(cwd, dest); const build_dir = posixify(path.relative(cwd, dest));
const src_dir = path.relative(cwd, src); const src_dir = posixify(path.relative(cwd, src));
return `// This file is generated by Sapper — do not edit it!\n` + template return `// This file is generated by Sapper — do not edit it!\n` + template
.replace('__BUILD__DIR__', JSON.stringify(build_dir)) .replace('__BUILD__DIR__', JSON.stringify(build_dir))