From 7601bec91a2549f027347193d00a088d4ec1e1a7 Mon Sep 17 00:00:00 2001 From: Yuan He Date: Thu, 9 Apr 2015 22:41:05 +0800 Subject: [PATCH] try to fix webpack-dev-server#149 --- lib/OriginalSource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OriginalSource.js b/lib/OriginalSource.js index 6dd8d49..519f2f0 100644 --- a/lib/OriginalSource.js +++ b/lib/OriginalSource.js @@ -58,7 +58,7 @@ OriginalSource.prototype.node = function(options) { var node = new SourceNode(null, null, null, lines.map(function(line, idx) { var pos = 0; - if(options.columns === false) { + if(typeof(options) !== 'undefined' && options.columns === false) { return new SourceNode(idx+1, 0, name, (line + (idx != lines.length-1 ? "\n" : "")) );