Configuration options for the bundle-analyzer analyzer.

interface BundleAnalyzerOptions {
    beforeReportUpload?: ((original) => Promise<Output>);
    ignorePatterns?: string[];
    normalizeAssetsPattern?: string;
}

Properties

beforeReportUpload?: ((original) => Promise<Output>)

Asynchronous function to customize the report output.

This function allows you to modify the report output before it is finalized. By default, it returns the original output without modification.

Type declaration

    • (original): Promise<Output>
    • Parameters

      • original: Output

      Returns Promise<Output>

Returns

A promise that resolves to the customized output.

ignorePatterns?: string[]

Patterns to ignore certain files or directories in the analysis. The patterns follow the standard glob pattern syntax. By default, it returns an empty list.

normalizeAssetsPattern?: string

A pattern to normalize asset names (e.g., for hashing). By default, it returns an empty string, which will replace anything "hashlike" with "*".

Generated using TypeDoc