Commit 75521d9
fix: detect memfs used by webpack-dev-server 4+
Webpack-dev-server 4+ uses memfs instead of memory-fs for in-memory
filesystem. The memfs library creates a filesystem object with a __vol
property that references the underlying Volume instance.
This fix checks for the __vol property to detect memfs and returns null
for bundleDir, which prevents the analyzer from trying to read bundle
files from disk when they only exist in memory.1 parent b3f44b0 commit 75521d9
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
235 | 243 | | |
236 | 244 | | |
237 | 245 | | |
| |||
0 commit comments