webpack-bundle-analyzer 4.4.0 → 4.4.1

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
@@ -12,19 +12,25 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
12
12
 
13
13
  ## UNRELEASED
14
14
 
15
+ ## 4.4.1
16
+
17
+ * **Bug Fix**
18
+ * Fix missing module chunks ([#433](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/433) by [@deanshub](https://github.com/deanshub))
19
+
20
+ * **Internal**
21
+ * Fix tests timing out in CI ([#435](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/435) by [@deanshub](https://github.com/deanshub))
22
+ * Fix command in issue template ([#428](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/428) by [@cncolder](https://github.com/cncolder))
23
+
15
24
  ## 4.4.0
16
25
 
17
26
  * **Improvement**
18
- * Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@
19
- stanislawosinski](https://github.com/stanislawosinski))
27
+ * Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@stanislawosinski](https://github.com/stanislawosinski))
20
28
 
21
29
  * **Bug Fix**
22
- * Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@
23
- stanislawosinski](https://github.com/stanislawosinski))
30
+ * Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@stanislawosinski](https://github.com/stanislawosinski))
24
31
 
25
32
  * **Internal**
26
- * Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@
27
- stanislawosinski](https://github.com/stanislawosinski))
33
+ * Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@stanislawosinski](https://github.com/stanislawosinski))
28
34
 
29
35
  ## 4.3.0
30
36
 
package/lib/analyzer.js CHANGED
@@ -184,7 +184,7 @@ function getBundleModules(bundleStats) {
184
184
 
185
185
  function assetHasModule(statAsset, statModule) {
186
186
  // Checking if this module is the part of asset chunks
187
- return statModule.chunks.some(moduleChunk => statAsset.chunks.includes(moduleChunk));
187
+ return (statModule.chunks || []).some(moduleChunk => statAsset.chunks.includes(moduleChunk));
188
188
  }
189
189
 
190
190
  function isEntryModule(statModule) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-bundle-analyzer",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
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",
package/src/analyzer.js CHANGED
@@ -190,7 +190,7 @@ function getBundleModules(bundleStats) {
190
190
 
191
191
  function assetHasModule(statAsset, statModule) {
192
192
  // Checking if this module is the part of asset chunks
193
- return statModule.chunks.some(moduleChunk =>
193
+ return (statModule.chunks || []).some(moduleChunk =>
194
194
  statAsset.chunks.includes(moduleChunk)
195
195
  );
196
196
  }