A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier
Overall
score
97%
A command-line tool that programmatically creates and manages webpack configurations for different environments.
Create a CLI tool that generates webpack configuration objects for both development and production environments. The tool should be able to output these configurations in a format suitable for use with webpack.
The tool must support creating configurations for two distinct modes:
The tool should accept a command-line argument to specify the environment:
node config-tool.js development
node config-tool.js productionThe tool should output the webpack configuration as formatted JSON to the console.
@generates
/**
* Creates a webpack configuration object for the specified environment
* @param {string} env - The environment ('development' or 'production')
* @returns {object} Webpack configuration object
*/
function createWebpackConfig(env) {
// Implementation
}
module.exports = { createWebpackConfig };Provides module bundling and configuration infrastructure.
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