webpack-bundle-analyzer 2.8.3 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,13 @@
10
10
 
11
11
  _Note: Gaps between patch versions are faulty, broken or test releases._
12
12
 
13
+ ## 2.9.0
14
+ * **New Feature**
15
+ * Show chunk sizes in sidebar (closes #91)
16
+
17
+ * **Bug Fix**
18
+ * Properly parse webpack bundles that use arrow functions as module wrappers (#108, @regiontog)
19
+
13
20
  ## 2.8.3
14
21
  * **Bug Fix**
15
22
  * Correctly advertise port when using a random one (#89, @yannickcr)
package/lib/parseUtils.js CHANGED
@@ -119,7 +119,7 @@ function isArgumentArrayConcatContainingChunks(arg) {
119
119
  function isModuleWrapper(node) {
120
120
  return (
121
121
  // It's an anonymous function expression that wraps module
122
- node.type === 'FunctionExpression' && !node.id ||
122
+ (node.type === 'FunctionExpression' || node.type === 'ArrowFunctionExpression') && !node.id ||
123
123
  // If `DedupePlugin` is used it can be an ID of duplicated module...
124
124
  isModuleId(node) ||
125
125
  // or an array of shape [<module_id>, ...args]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-bundle-analyzer",
3
- "version": "2.8.3",
3
+ "version": "2.9.0",
4
4
  "description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap",
5
5
  "author": "Yury Grunin <grunin.ya@ya.ru>",
6
6
  "license": "MIT",