use absolute path

This commit is contained in:
Rich Harris
2017-12-11 13:12:51 -05:00
parent e723f781a8
commit b6f789e50c

View File

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