Babel
Babel JavaScript compiler for compatibility. Use for transpiling.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill babelAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.0 KB, 231 tokens by cl100k_base, as published. Nobody here has run it
Babel
Babel is the transpiler that made ES6+ possible. While slower than SWC/esbuild, it remains the most extensible compiler with the largest plugin ecosystem.
When to Use
- Custom Transformations: You need to write a custom AST transform for your framework.
- Legacy Browser Support:
preset-envwithcore-jsis still the gold standard for "make it run on IE11" (if you must).
Core Concepts
Presets
@babel/preset-env, @babel/preset-react, @babel/preset-typescript.
Plugins
Small transforms. plugin-transform-runtime.
Polyfills
Injecting missing features (Map, Set, Promise).
Best Practices (2025)
Do:
- Use SWC if possible: Babel is slow.
- Use
babel.config.json: Project-wide configuration.
Don't:
- Don't transpile
node_modules: Unless absolutely necessary. It murders build time.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.