node 6 support

This commit is contained in:
Rich Harris
2018-09-30 12:54:50 -04:00
parent 5573258a10
commit 4f6efbda79
6 changed files with 44 additions and 33 deletions

View File

@@ -202,10 +202,7 @@ function generate_server(
root,
error
};
// this is included for legacy reasons
export const routes = {};`.replace(/^\t\t/gm, '').trim();
};`.replace(/^\t\t/gm, '').trim();
return `// This file is generated by Sapper — do not edit it!\n` + template
.replace('__BUILD__DIR__', JSON.stringify(locations.dest()))