Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Overall
score
98%
Build a tool that configures webpack bundle analysis to generate customized stats files with specific information included or excluded based on requirements.
Create a function that generates a webpack configuration with the bundle analyzer plugin configured to produce stats files with custom options. The function should accept options for what to include in the stats output and return a properly configured plugin instance.
Your implementation should:
@generates
/**
* Creates a configured BundleAnalyzerPlugin with custom stats options
* @param {Object} config - Configuration for stats generation
* @param {boolean} config.includeSource - Whether to include module source code in stats
* @param {boolean} config.includeReasons - Whether to include module inclusion reasons
* @param {boolean} config.includeChunks - Whether to include chunk information
* @param {boolean} config.includeModules - Whether to include module information
* @param {boolean} config.includeAssets - Whether to include asset information
* @param {string} config.statsFilename - Filename for the generated stats file
* @returns {BundleAnalyzerPlugin} Configured plugin instance
*/
function createBundleStatsPlugin(config) {
// Implementation
}
module.exports = { createBundleStatsPlugin };Provides webpack plugin for bundle analysis and stats generation.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-webpack-bundle-analyzerevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10