Currently it will respect a browserlist
field in package.json
but it would be great if it could also respect the .browserslistrc
file.
This will be a little more complicated though as that file can define multiple targets, so an option as to which target to respect would also need to be added, defaulting to production
.
# .browserslistrc
[production]
since 2024
[development]
last 1 version
if (!("groupBy" in Object)) {
import("object.groupby").then(({ shim }) => shim())
}
# .browserslistrc
[production]
since 2020
[development]
last 1 version
if (!("groupBy" in Object)) {
import("object.groupby").then(({ shim }) => shim())
}
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too