Fixes #518 - [v4] Make sure Marko hot reloading is always enabled when app is launched with browser-refresh

This commit is contained in:
Patrick Steele-Idem 2017-01-06 16:30:37 -07:00
parent 6038bb7823
commit 5baf472b81
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,5 @@
require('./runtime/env-init');
var assign = require('object-assign');
var express = module.parent.require('express');
var response = express.response;
@ -8,7 +10,7 @@ response.marko = response.marko || function(template, data) {
'res.marko does not take a template name or path like res.render. ' +
'Instead you should use `require(\'./path/to/template.marko\')` ' +
'and pass the loaded template to this function.'
)
);
}
var res = this;

View File

@ -1,4 +1,5 @@
'use strict';
require('./runtime/env-init');
const path = require('path');
const resolveFrom = require('resolve-from');