fix location, so that runtime can be found from /tmp

This commit is contained in:
Rich Harris
2017-12-14 07:11:52 -05:00
parent 8a9f4bd268
commit 24b259f80b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import app from 'sapper/runtime/app.js';
import app from '__app__';
import { detachNode } from 'svelte/shared.js';
const target = document.querySelector('__selector__');

View File

@@ -34,6 +34,7 @@ module.exports = function create_app(src, dest, routes, options) {
.join(' else ') + ' else return false;';
const main = template
.replace('__app__', path.resolve(__dirname, '../runtime/app.js'))
.replace('__selector__', options.selector || 'main')
.replace('// ROUTES', code);