diff --git a/client/scripts/build.js b/client/scripts/build.js index ade05cc51..5127d6b98 100644 --- a/client/scripts/build.js +++ b/client/scripts/build.js @@ -153,7 +153,7 @@ function build(previousFileSizes) { let errMessage = err.message; // Add additional information for postcss errors - if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) { + if Object.hasOwn(err, 'postcssNode') { errMessage += '\nCompileError: Begins at CSS selector ' + err['postcssNode'].selector;