chunkFilename
chunkFilename is a configuration option commonly found in JavaScript module bundlers such as Webpack and Rollup. It specifies the naming pattern for code chunks that are not the main entry point of an application. These chunks often contain lazily loaded modules or vendor dependencies that are separated for optimization. The filename typically includes placeholders that are replaced by the bundler during the build process. A common placeholder is `[id]`, which is replaced by a unique identifier assigned to the chunk. Another common placeholder is `[chunkhash]`, which is replaced by a hash of the chunk's content. Using `[chunkhash]` is particularly useful for cache busting, as it ensures that if the content of a chunk changes, its filename will also change, forcing browsers to download the updated version. For example, a configuration like `chunkFilename: 'static/js/[name].[chunkhash].chunk.js'` would result in filenames like `static/js/123.abcdef1234567890.chunk.js` where `123` might be a chunk ID and `abcdef1234567890` is the content hash. The precise placeholders and their behavior can vary slightly depending on the specific bundler and its version.