This commit is contained in:
Richard Harris
2019-02-02 13:01:55 -05:00
parent 85c86b5562
commit b7fce99438
3 changed files with 14 additions and 18 deletions

View File

@@ -153,6 +153,7 @@ function generate_client(
return `// This file is generated by Sapper — do not edit it!\n` + template
.replace(/__ROOT__/g, stringify(get_file(path_to_routes, manifest_data.root), false))
.replace(/__ROOT_PRELOAD__/g, manifest_data.root.has_preload ? stringify(get_file(path_to_routes, manifest_data.root), false) : './internal')
.replace(/__ERROR__/g, stringify(posixify(`${path_to_routes}/_error.html`), false))
.replace(/__IGNORE__/g, `[${server_routes_to_ignore.map(route => route.pattern).join(', ')}]`)
.replace(/__COMPONENTS__/g, components)