webpack-sources
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -56,11 +56,13 @@ /* | ||
node.walk(function(chunk, mapping) { | ||
var parts = chunk.split("\n"); | ||
var parts = chunk.split(/(\n)/); | ||
for(var i = 0; i < parts.length; i += 2) { | ||
var nl = i + 1 < parts.length; | ||
var part = parts[i] + (nl ? "\n" : ""); | ||
if(part && needPrefix) { | ||
output.push(prefix); | ||
if(part) { | ||
if(needPrefix) { | ||
output.push(prefix); | ||
} | ||
output.push(new SourceNode(mapping.line, mapping.column, mapping.source, part, mapping.name)); | ||
needPrefix = nl; | ||
} | ||
output.push(new SourceNode(mapping.line, mapping.column, mapping.source, chunk, mapping.name)); | ||
needPrefix = nl; | ||
} | ||
@@ -67,0 +69,0 @@ }); |
{ | ||
"name": "webpack-sources", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Source code handling classes for webpack", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36694
961