Skip to content

Commit

Permalink
fix: solved the error — options is required
Browse files Browse the repository at this point in the history
add a default value for BundleAnalyzerPlugin's options
  • Loading branch information
jerryOnlyZRJ committed Jul 30, 2019
1 parent dfb9575 commit 29825cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BundleAnalyzerPlugin.js
Expand Up @@ -8,7 +8,7 @@ const viewer = require('./viewer');

class BundleAnalyzerPlugin {

constructor(opts) {
constructor(opts = {}) {
this.opts = {
analyzerMode: 'server',
analyzerHost: '127.0.0.1',
Expand Down

0 comments on commit 29825cf

Please sign in to comment.