Skip to content

Commit

Permalink
Merge pull request #275 from amoshydra/bundledir-as-null-for-async-mfs
Browse files Browse the repository at this point in the history
Add AsyncMFS for getBundleDirFromCompiler
  • Loading branch information
th0r committed May 8, 2019
2 parents 34b6223 + 2aba4a3 commit 44bd8d0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/BundleAnalyzerPlugin.js
Expand Up @@ -128,7 +128,16 @@ class BundleAnalyzerPlugin {
}

getBundleDirFromCompiler() {
return (this.compiler.outputFileSystem.constructor.name === 'MemoryFileSystem') ? null : this.compiler.outputPath;
switch (this.compiler.outputFileSystem.constructor.name) {
case 'MemoryFileSystem':
return null;
// Detect AsyncMFS used by Nuxt 2.5 that replaces webpack's MFS during development
// Related: #274
case 'AsyncMFS':
return null;
default:
return this.compiler.outputPath;
}
}

}
Expand Down

0 comments on commit 44bd8d0

Please sign in to comment.