src/utils/validateStats.js
Consider simplifying this complex logical expression. Open
Open
if (
(typeof stats === 'undefined' || !stats) ||
(!stats.modules || Object.prototype.toString.call(stats.modules) !== '[object Array]') ||
(!stats.chunks || Object.prototype.toString.call(stats.chunks) !== '[object Array]') ||
(!stats.entrypoints || typeof stats.entrypoints !== 'object')