performance.dnsPrefetch

    • Type: undefined | string[]

    • Default: undefined

    Specifies that the user agent should preemptively perform DNS resolution for the target resource's origin, refer to dns-prefetch.

    After this property is set, the domain name can be resolved before the resource is requested, reducing request latency and improving loading performance.

    See Using dns-prefetch for more details.

    INFO

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