babel-preset-env: do not repeat, that targets.esmodules discards targets.browsers
Open
- Dominant language
- TypeScript
- Stars
- 777
- Forks
- 1.4k
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 3
Description
https://babeljs.io/docs/en/babel-preset-env#targetsesmodules says:
> When specifying this option, the browsers field will be ignored. You can use this approach in combination with to conditionally serve smaller scripts to users (https://jakearchibald.com/2017/es-modules-in-browsers/#nomodule-for-backwards-compatibility).
>
> Please note: when specifying the esmodules target, browsers targets will be ignored.
As this text says twice, that targets.browsers will be ignored, deduplicate it.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.