From ccaa0479c8a9af5a80604e7b9971a3efd4929784 Mon Sep 17 00:00:00 2001 From: Jo Liss Date: Tue, 22 Nov 2022 20:25:08 +0000 Subject: [PATCH] docs: Add default browserslist configuration as a starting point This addition helps users figure out that this is the kind of expression they need to put in their `package.json`, and it provides the Next.js defaults to use as a starting point. (I was initially confused and thought the default configuration would just be "defaults".) --- docs/basic-features/supported-browsers-features.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/basic-features/supported-browsers-features.md b/docs/basic-features/supported-browsers-features.md index 8631fd8ec747..1d3fe8fcc3fd 100644 --- a/docs/basic-features/supported-browsers-features.md +++ b/docs/basic-features/supported-browsers-features.md @@ -14,7 +14,19 @@ Next.js supports **modern browsers** with zero configuration. ## Browserslist -If you would like to target specific browsers or features, Next.js supports [Browserslist](https://browsersl.ist) configuration. +If you would like to target specific browsers or features, Next.js supports [Browserslist](https://browsersl.ist) configuration in your `package.json` file. Next.js uses the following Browserslist configuration by default: + +```json +{ + "browserslist": [ + "chrome 64", + "edge 79", + "firefox 67", + "opera 51", + "safari 12" + ] +} +``` ## Polyfills