webpack-core
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -10,8 +10,11 @@ /* | ||
function SourceMapSource(value, name, sourceMap, innerSourceMap) { | ||
function SourceMapSource(value, name, sourceMap, originalSource, innerSourceMap) { | ||
if(innerSourceMap) { | ||
innerSourceMap = new SourceMapConsumer(innerSourceMap); | ||
sourceMap = SourceMapGenerator.fromSourceMap(new SourceMapConsumer(sourceMap)); | ||
while(innerSourceMap._sources.has(name) && innerSourceMap.sourceContentFor(name)) { | ||
name += "*"; | ||
} | ||
sourceMap.setSourceContent(name, originalSource); | ||
sourceMap.applySourceMap(innerSourceMap, name); | ||
sourceMap.removeSource(name); | ||
sourceMap = sourceMap.toJSON(); | ||
@@ -18,0 +21,0 @@ } |
{ | ||
"name": "webpack-core", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "The core of webpack and enhanced-require.", |
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
24579
18
731