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