webpack-bundle-analyzer 4.4.1 → 4.4.2

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,6 +12,12 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
12
12
 
13
13
  ## UNRELEASED
14
14
 
15
+ ## 4.4.2
16
+
17
+ * **Bug Fix**
18
+ * Fix failure with `compiler.outputFileSystem.constructor` being `undefined` ([#447](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/447) by [@kedarv](https://github.com/kedarv) and [@alexander-akait](https://github.com/alexander-akait))
19
+ * **NOTE:** This fix doesn't have added test coverage so the fix might break in future versions unless test coverage is added later.
20
+
15
21
  ## 4.4.1
16
22
 
17
23
  * **Bug Fix**
@@ -141,6 +141,10 @@ class BundleAnalyzerPlugin {
141
141
  }
142
142
 
143
143
  getBundleDirFromCompiler() {
144
+ if (typeof this.compiler.outputFileSystem.constructor === 'undefined') {
145
+ return this.compiler.outputPath;
146
+ }
147
+
144
148
  switch (this.compiler.outputFileSystem.constructor.name) {
145
149
  case 'MemoryFileSystem':
146
150
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-bundle-analyzer",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
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",
@@ -77,7 +77,7 @@
77
77
  "mobx-react": "6.3.1",
78
78
  "mocha": "8.2.1",
79
79
  "nightmare": "3.0.2",
80
- "postcss": "8.1.6",
80
+ "postcss": "8.2.10",
81
81
  "postcss-icss-values": "2.0.2",
82
82
  "postcss-loader": "4.0.4",
83
83
  "preact": "10.5.5",
@@ -134,6 +134,9 @@ class BundleAnalyzerPlugin {
134
134
  }
135
135
 
136
136
  getBundleDirFromCompiler() {
137
+ if (typeof this.compiler.outputFileSystem.constructor === 'undefined') {
138
+ return this.compiler.outputPath;
139
+ }
137
140
  switch (this.compiler.outputFileSystem.constructor.name) {
138
141
  case 'MemoryFileSystem':
139
142
  return null;