Skip to content

Commit

Permalink
fix: compatibility with webpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 25, 2021
1 parent 9e0681c commit 5d7c085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/configtest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ConfigTestCommand {
throw new cli.webpack.WebpackOptionsValidationError(error);
}
} catch (error) {
if (error instanceof cli.webpack.ValidationError || error.name === "ValidationError") {
if (cli.isValidationError(error)) {
cli.logger.error(error.message);
} else {
cli.logger.error(error);
Expand Down

0 comments on commit 5d7c085

Please sign in to comment.