webpack-sources
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -130,22 +130,29 @@ /* | ||
// Construct a left to right node from the found middle to right mapping | ||
const source = m2rBestFit.source; | ||
l2rOutput.push( | ||
new SourceNode( | ||
m2rBestFit.originalLine, | ||
m2rBestFit.originalColumn, | ||
source, | ||
chunk, | ||
allowMiddleName ? middleMapping.name : m2rBestFit.name | ||
) | ||
); | ||
let source = m2rBestFit.source; | ||
// Workaround for bug in source-map | ||
// null sources are incorrectly normalized to "." | ||
if (source && source !== ".") { | ||
l2rOutput.push( | ||
new SourceNode( | ||
m2rBestFit.originalLine, | ||
m2rBestFit.originalColumn, | ||
source, | ||
chunk, | ||
allowMiddleName ? middleMapping.name : m2rBestFit.name | ||
) | ||
); | ||
// Set the source contents once | ||
if (!("$" + source in rightSourceContentsSet)) { | ||
rightSourceContentsSet["$" + source] = true; | ||
const sourceContent = sourceMapConsumer.sourceContentFor(source); | ||
if (sourceContent) { | ||
l2rResult.setSourceContent(source, sourceContent); | ||
// Set the source contents once | ||
if (!("$" + source in rightSourceContentsSet)) { | ||
rightSourceContentsSet["$" + source] = true; | ||
const sourceContent = sourceMapConsumer.sourceContentFor( | ||
source, | ||
true | ||
); | ||
if (sourceContent) { | ||
l2rResult.setSourceContent(source, sourceContent); | ||
} | ||
} | ||
return; | ||
} | ||
return; | ||
} | ||
@@ -152,0 +159,0 @@ } |
{ | ||
"name": "webpack-sources", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"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
53562
1596