From c593b866e00981d292c6f1b610f1d614aff6650c Mon Sep 17 00:00:00 2001 From: Parham Negahdar Date: Tue, 25 Jun 2024 16:54:04 -0400 Subject: [PATCH] Update build.md --- docs/guide/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/build.md b/docs/guide/build.md index 50abd7c91cea56..9768db29ba67b3 100644 --- a/docs/guide/build.md +++ b/docs/guide/build.md @@ -13,7 +13,7 @@ The production bundle assumes support for modern JavaScript. By default, Vite ta You can specify custom targets via the [`build.target` config option](/config/build-options.md#build-target), where the lowest target is `es2015`. -Note that by default, Vite only handles syntax transforms and **does not cover polyfills**. You can check out [Polyfill.io](https://polyfill.io/) which is a service that automatically generates polyfill bundles based on the user's browser UserAgent string. +Note that by default, Vite only handles syntax transforms and **does not cover polyfills**. You can check out [Polyfill JS](https://cdnjs.cloudflare.com/polyfill/) which is a service that automatically generates polyfill bundles based on the user's browser UserAgent string. Legacy browsers can be supported via [@vitejs/plugin-legacy](https://github.com/vitejs/vite/tree/main/packages/plugin-legacy), which will automatically generate legacy chunks and corresponding ES language feature polyfills. The legacy chunks are conditionally loaded only in browsers that do not have native ESM support.