From dc929fcd83e21e7c17dc57421eb98352779d025e Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 17 Dec 2017 15:17:23 -0500 Subject: [PATCH] inject app path, since dest might be /tmp causing resolution failure --- lib/utils/create_app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/create_app.js b/lib/utils/create_app.js index e891a00..14547af 100644 --- a/lib/utils/create_app.js +++ b/lib/utils/create_app.js @@ -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));