Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created August 29, 2016 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxaviers/6b9e0216932100a1e83241c26aeffdf3 to your computer and use it in GitHub Desktop.
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`
--- 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