-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
If we can land #257 , it means we can better represent polyfills since we can specify their target platform/engine versions.
We should do a big push to list as many widely used polyfills in this repo, along with their engine constraints and their replacements.
For example:
- Polyfill:
abort-controller - Support: web features doc
So we would want to define this similar to the following:
{
"moduleName": "abort-controller",
"replacements: [
{
"type": "native",
"replacement": "AbortController",
"engines": [
{
"type": "baseline",
"category": "aborting",
"key": "api.AbortController"
},
{
"type": "engine",
"name": "node",
"version": ">=18.0.0", // put real version here
}
},
]
}this should help us define #257 as we add more polyfills to this issue
in this example, we can use the category and key to access the web-features npm package's data set to get hold of the browser versions.
we still need to define node, bun, etc ourselves.
so tasks for us to do:
- list as many popular polyfills as we can that are redundant in modern browsers/engines
- help bikeshed the data shape for Repo: next major version of schema #257
joaopedrodcf and andriyor
Metadata
Metadata
Assignees
Labels
No labels