Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created August 29, 2016 23:49
Show Gist options
  • Select an option

  • Save rxaviers/6b9e0216932100a1e83241c26aeffdf3 to your computer and use it in GitHub Desktop.

Select an option

Save rxaviers/6b9e0216932100a1e83241c26aeffdf3 to your computer and use it in GitHub Desktop.
Comparing `ConcatSource` between `[email protected]` (equivalent date of `[email protected]`) vs `[email protected]`
--- 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