Created
August 29, 2016 23:49
-
-
Save rxaviers/6b9e0216932100a1e83241c26aeffdf3 to your computer and use it in GitHub Desktop.
Comparing `ConcatSource` between `webpack-core@0.6.8` (equivalent date of `webpack@1.13.2`) vs `webpack-sources@0.1.2`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- node_modules/webpack-core/lib/ConcatSource.js 2015-04-20 15:15:20.000000000 -0300 | |
+++ node_modules/webpack-sources/lib/ConcatSource.js 2016-01-30 10:03:32.000000000 -0200 | |
@@ -28,7 +28,9 @@ | |
ConcatSource.prototype.size = function() { | |
return this.children.map(function(item) { | |
return typeof item === "string" ? item.length : item.size(); | |
- }).reduce(function(sum, s) { return sum + s; }, 0); | |
+ }).reduce(function(sum, s) { | |
+ return sum + s; | |
+ }, 0); | |
}; | |
require("./SourceAndMapMixin")(ConcatSource.prototype); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment