网页 综合 更新时间 2026-07-28 00:00:00

Supported Browsers

自动蜘蛛 nextjs.org 正文约 1478 字
Supported Browsers
Next.js supports modern browsers with zero configuration.
If you would like to target specific browsers or features, Next.js supports Browserslist configuration in your package.json file. Next.js uses the following Browserslist configuration by default:
We inject widely used polyfills, including:
If any of your dependencies include these polyfills, they’ll be eliminated automatically from the production build to avoid duplication.
In addition, to reduce bundle size, Next.js will only load these polyfills for browsers that require them. The majority of the web traffic globally will not download these polyfills.
If your own code or any external npm dependencies require features not supported by your target browsers (such as IE 11), you need to add polyfills yourself.
To include polyfills, you can import them into the instrumentation-client.js file.
In this case, you should add a top-level import for the specific polyfill you need in your Custom <App> or the individual component.
The best approach is to isolate unsupported features to specific UI sections and conditionally load the polyfill if needed.
Next.js allows you to use the latest JavaScript features out of the box. In addition to ES6 features, Next.js also supports:
Next.js has built-in TypeScript support. Learn more here.
You can customize babel configuration. Learn more here.
Last updated July 28, 2026
Subscribe to our newsletter
Stay updated on new releases and features, guides, and case studies.
访问原文 返回搜索 https://nextjs.org/docs/architecture/supported-browsers
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。