mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
inject app path, since dest might be /tmp causing resolution failure
This commit is contained in:
@@ -20,6 +20,7 @@ module.exports = function create_app(src, dest, routes, options) {
|
||||
}]`;
|
||||
|
||||
const main = template
|
||||
.replace(/__app__/g, path.resolve(__dirname, '../../runtime/app.js'))
|
||||
.replace(/__routes__/g, code)
|
||||
.replace(/__dev__/g, String(dev));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user