New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add helper-compilation-targets docs #2484
Conversation
Deploy preview for babel ready! Built with commit 17e9ed2 |
d3a0668
to
5b748f6
Compare
Awesome! Maybe could mention other tools using it or why you would as an integration? |
Not the best place to put it, but I think we can make another sidebar section for various helper packages including this one Lines 25 to 35 in 70e3cea
Helper Packages or Babel Helper Packages? another one that people use would be the add import one |
I am good for "Helper Packages", since it is shorter. |
e085df5
to
64570c6
Compare
): Set<string>; // A set of enabled plugins | ||
``` | ||
|
||
Given a compat data table `list` (i.e. `@babel/compat-data`) and [browser targets](preset-env.md#targets) `targets`, return a set of required plugins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need a doc for @babel/compat-data later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start, love the examples and good approach for us to continue documenting some of these
Co-authored-by: Henry Zhu <hi@henryzoo.com>
Drafted a doc on
@babel/helper-compilation-targets
.Related: babel/babel#13131
Preview