A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier
Overall
score
97%
Create a build status reporter that displays formatted webpack compilation results to users in a clean, readable format.
Your task is to create a reporter that processes webpack compilation statistics and displays formatted error and warning messages. The reporter should:
Given webpack stats with no errors or warnings, it returns success status and prints "Compiled successfully." @test
Given webpack stats with errors, it formats and displays the errors with "Failed to compile." header @test
Given webpack stats with only warnings, it formats and displays warnings with "Compiled with warnings." header @test
@generates
/**
* Processes webpack stats and reports formatted build results
* @param {Object} stats - Webpack stats object with errors and warnings arrays
* @returns {{ success: boolean, hasWarnings: boolean }} Build status summary
*/
function reportBuildStatus(stats) {
// Implementation
}
module.exports = { reportBuildStatus };Provides utilities for formatting webpack messages and enhancing developer experience in React applications.
Install with Tessl CLI
npx tessl i tessl/npm-confusing-browser-globalsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10