Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an --es-modules option #8671
Is your feature request related to a problem? Please describe.
Babel is great at compiling to a single target, but not so great at compiling multiple targets with different configurations, for example, when compiling an ES5 target (
At the moment, this can be achieved with env variables, double builds, and some conditional statements within the babel configuration. However, it is a bit clunky.
Describe the solution you'd like
The options required for ESM builds are
Describe alternatives you've considered
A true parallelized multiple targeting system that is ran through a single
Teachability, Documentation, Adoption, Migration Strategy
Will write if considered.
Hey @milesj! We really appreciate you taking the time to report an issue. The collaborators