Update Browserslist DB
CLI tool to update
caniuse-lite with browsers DB
from Browserslist config.
Some queries like
last 2 version or
>1% depends on actual data
Why You Need to Call it Regularly
npx [email protected] updates
in your npm, yarn or pnpm lock file.
This update will bring data about new browsers to polyfills tools like Autoprefixer or Babel and reduce already unnecessary polyfills.
You need to do it regularly for three reasons:
- To use the latest browser’s versions and statistics in queries like
last 2 versionsor
>1%. For example, if you created your project 2 years ago and did not update your dependencies,
last 1 versionwill return 2 year old browsers.
- Actual browsers data will lead to using less polyfills. It will reduce size of JS and CSS files and improve website performance.
caniuse-litededuplication: to synchronize version in different tools.