trim eval code in babel-node

This commit is contained in:
Sebastian McKenzie 2015-06-28 00:59:12 +01:00
parent 8ab90aacd3
commit 3b1a9a0adb

View File

@ -41,6 +41,7 @@ babel.register({
//
var _eval = function (code, filename) {
code = code.trim();
if (!code) return undefined;
code = babel.transform(code, {