Closed MikeMcC399 closed 1 year ago
Hey @MikeMcC399, thanks for the report. Is there anything specific this will improve? Unfortunately I haven't worked with browserlist yet and a quick research suggested it helps with polyfills and tooling.
So I was just wondering:
I doubt it breaks anything though - you would have most likely added it to your issue.
@brianebeling
Is there anything specific this will improve?
See below for the benefits taken from https://github.com/browserslist/update-db#readme.
Are there improvement for the user?
Correct support for latest browser versions. (See below again.) cwa-website uses autoprefixer which uses browserslist. I checked the performance with Lighthouse, however the change does not seem to bring any performance benefits. The size of the style.css
file is unchanged.
Can this change break anything, be it development related or user related?
There is no change to the successful outcome of running the Cypress test suite npm test
after making this change.
Why You Need to Call it Regularly
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 polyfills tools like Autoprefixer or Babel and reduce already unnecessary polyfills.
You need to do it regularly for three reasons:
Thanks a bunch! That clears it up. Then I see no issue merging it.
Where to find the issue
.browserslistrc
Describe the issue
.browserslistrc contains the list of browsers to be considered for compatibility reasons:
This list is outdated.
Steps to reproduce
npx browserslist
shows which browsers are currently consideredSuggestion
Update the database with
npx browserslist@latest --update-db
Change the list .browserslistrc to:
by changing: