babel / babel/website

preset-ent.targets: browserslist string vs esmodules

Open
#2,303 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

Please write in the documentation to which browserlist string preset-env.targets: '...' does targets:{esmodules: true} equate.

Is esmodules:false the same as 'ie11' and esmodules:true the same as 'defaults and not ie 11'?

I like very much the idea of splitting the scripts into type=module/nomodule html script tag, but I do not want to generate module-syntax for very old browsers, that understand 'type=module'.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the preset-env.targets documentation entry point and verify what targets:{esmodules: true} and esmodules:false select, including their relationship to the proposed Browserslist strings. Done means the documentation clearly states the equivalent or non-equivalent configurations and explains any relevant caveats for module and nomodule scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.