Tech
What Browserslist Actually Does in Next.js
We set up three near-identical Next.js 16 projects to answer a simple question: if you set a browserslist target in package.json , does the build change to match it?
We tested three targets ( ie 11 , chrome 116 , about 3 years old, and chrome 139 , about 1 year old) and compared the compiled output byte by byte.
The code for all three projects is on GitHub: ale-grosselle/nextjs-browserlist-test .
The setup
All three projects are otherwise identical; here's the source...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to