Compare commits

...

2 Commits

Author SHA1 Message Date
Rich Harris
727782aca2 -> v0.0.3 2017-12-11 13:13:00 -05:00
Rich Harris
b6f789e50c use absolute path 2017-12-11 13:12:51 -05:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "sapper", "name": "sapper",
"version": "0.0.2", "version": "0.0.3",
"description": "Combat-ready apps, engineered by Svelte", "description": "Combat-ready apps, engineered by Svelte",
"main": "connect.js", "main": "connect.js",
"directories": { "directories": {

View File

@@ -15,7 +15,8 @@ module.exports = function create_app(routes, dest, matchers, dev) {
return ` return `
if (${condition}) { if (${condition}) {
import('../routes/${matcher.file}').then(render); // TODO set params, if applicable
import('${routes}/${matcher.file}').then(render);
} }
`.replace(/^\t{3}/gm, '').trim(); `.replace(/^\t{3}/gm, '').trim();
}) })