fix navigation and ESM stuff

This commit is contained in:
Rich Harris
2017-12-11 18:05:07 -05:00
parent c6778c961b
commit 33fcb865c8
3 changed files with 10 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ module.exports = function create_app(routes, dest, matchers, dev) {
}
`.replace(/^\t{3}/gm, '').trim();
})
.join(' else ');
.join(' else ') + ' else return false;';
const main = template.replace('// ROUTES', code);