performance.prefetch

    • Type: undefined | true | PrefetchOption
    type IncludeType = 'async-chunks' | 'initial' | 'all-assets' | 'all-chunks';
    
    type Filter = Array<string | RegExp> | ((filename: string) => boolean);
    
    interface PrefetchOption {
      type?: IncludeType;
      include?: Filter;
      exclude?: Filter;
    }
    • Default: undefined

    INFO

    The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - performance.prefetch.