mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
use absolute path
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user