Skip to content

Commit

Permalink
fix: invalid export case
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Sep 5, 2021
1 parent 3f25289 commit da23efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -67,7 +67,7 @@ class WebpackCLI {
}

// For babel/typescript
if (result && "default" in result) {
if (result && typeof result === "object" && "default" in result) {
result = result.default || {};
}

Expand Down

0 comments on commit da23efa

Please sign in to comment.