Skip to content

Commit

Permalink
try to fix webpack-dev-server#149
Browse files Browse the repository at this point in the history
  • Loading branch information
lenage committed Apr 9, 2015
1 parent 9be04cd commit 7601bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OriginalSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" : ""))
);
Expand Down

0 comments on commit 7601bec

Please sign in to comment.