Skip to content

Commit

Permalink
Fix commonjs interop
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Aug 29, 2021
1 parent 1b7c86d commit 3b1f456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wmr/src/lib/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function getPlugins(options) {
production && copyAssetsPlugin({ root, mergedAssets }),
production &&
visualize &&
visualizer.default({
(visualizer.default || visualizer)({
// Don't open in unit tests
open: process.env.NODE_ENV !== 'test',
gzipSize: true,
Expand Down

0 comments on commit 3b1f456

Please sign in to comment.