performance.prefetch

    • 类型: 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;
    }
    • 默认值: undefined

    INFO

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - performance.prefetch