Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a way to check whether the functionality is compatible with specified
browserlist
.Aproach taken
I used the eslint-plugin-builtin-compat in order to check for functionality not supported by browsers specified in
browserlist
.I did not include it in the current
lint
command as it serves a bit different purpose in my opinion, so I created a separate.eslintrc
config for it.I also added
npm run supportedbrowsers
to list minimum version of all supported browsers.Disclaimer
The browser list specified is not a final be all end all that I decided is the minimal version Svelte will support. Instead, it is the minimal config that currently passes the check and can be improved by various polyfills.
Closes #558
Closes #2788