Skip to content

Commit

Permalink
Add AsyncMFS for getBundleDirFromCompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshydra committed Apr 25, 2019
1 parent 34b6223 commit 4b054b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BundleAnalyzerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ class BundleAnalyzerPlugin {
}

getBundleDirFromCompiler() {
return (this.compiler.outputFileSystem.constructor.name === 'MemoryFileSystem') ? null : this.compiler.outputPath;
switch (this.compiler.outputFileSystem.constructor.name) {
case 'MemoryFileSystem':
case 'AsyncMFS':
return null;
default:
return this.compiler.outputPath;
}
}

}
Expand Down

0 comments on commit 4b054b5

Please sign in to comment.