<img width="120" height="120" alt="Browserslist logo by Anton Popov" src="https://browsersl.ist/logo.svg" align="right">
CLI tool to update caniuse-lite
with browsers DB
from Browserslist config.
Some queries like last 2 versions
or >1%
depend on actual data
from caniuse-lite
.
npx update-browserslist-db@latest
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
npx update-browserslist-db@latest
updates caniuse-lite
version
in your npm, yarn, or pnpm lock file.
This update will bring data about new browsers to polyfill tools like Autoprefixer or Babel and reduce already unnecessary polyfills.
You need to do it regularly for three reasons:
last 2 versions
or >1%
. For example, if you created your project
2 years ago and did not update your dependencies, last 1 version
will return 2-year-old browsers.caniuse-lite
deduplication: to synchronize versions in different tools.