Skip to content

Commit 05dd1e5

Browse files
committed
Fix eslint complaints in build.js
1 parent a351750 commit 05dd1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function build(previousFileSizes) {
172172
let errMessage = err.message;
173173

174174
// Add additional information for postcss errors
175-
if (err.hasOwnProperty('postcssNode')) {
175+
if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) {
176176
errMessage +=
177177
'\nCompileError: Begins at CSS selector ' +
178178
err['postcssNode'].selector;

0 commit comments

Comments
 (0)