awesome-babel
by babel
😎A list of awesome Babel plugins, presets, etc.
AI summary
JavaScript optimizer
A curated collection of Babel plugins and presets for optimizing JavaScript code
- stars
- 867
- forks
- 47
- watching
- 34
- awesome list
- 1
- entries
- 73
What's in the list
73 links in 12 sections, with live GitHub stats.activeno commit in 2y
Parsers
babel-eslint
ESLint using Babel as the parser
Plugins / General Plugins
- external-helpers
Moves helper functions to a single imported module
fast-async
Uses nodent to compile async/await to fast Promise output
feature-flags
Helper for managing application feature flags
idx
library + babel plugin for a existential function
transform-builtin-extend
Enable extending builtin types like and , which require special treatment and require static analysis to detect
console-source
Prepends the file name and line numbers for all console commands
version
Babel plugin replace defined identifier to pkg.version
- babel-plugin-debug-tools
Babeljs Debug Tools helps you insert debug code and easely remove it when deploy to production
Plugins / Module Resolution
lodash
Cherry-picks Lodash modules so you don’t have to
ramda
Cherry-picks Ramda modules so you don’t have to
module-resolver
Custom module resolver
root-import
Import modules from the root with syntax
webpack-alias
Allows you to use webpack aliases and most of webpack resolve features in Babel
hash-resolve
Allows you to use instead of , the number of needed is worked out by the plugin
rewrite-module-path
Rewrite module resolving path
Plugins / React
React Optimize
A Babel preset and plugins for optimizing React code
React Transform
Instrument React components with custom transforms
react-docgen
Makes propTypes comments accessible at runtime for use with documentation generators
react-require
Adds React import declaration if file contains JSX tags
transform-react-remove-prop-types
Removes unnecessary React propTypes from the production build
transform-react-jsx-self
Adds a property to JSX tags for debugging. Don't use in production
- transform-react-constant-elements
Hoist elements that can be marked as constant to the highest scope for reuse
- transform-react-inline-elements
Replaces with a helper that is more optimized for production
react-hyperscript
HyperScript syntax for React components without runtime overhead
react-import-extends
Extends if a class renders a JSX element, also adds statement if it detects a JSX component in the file
babel-plugin-transform-react-class-to-function
Transforms React class components into a function, if possible
babel-plugin-hoist-facc
Transforms function as child components to hoist the children function to highest scope
react-hiccup
Hiccup syntax for React components
babel-plugin-framer-x
Removes Framer X markup from your components. Lets you use Framer X components in a Storybook or real application
babel-plugin-react-directive
Use directive in React, for example, you can use 、 in jsx just as 、 in Vue
zacs
"styled components"-ish syntax without performance overhead
babel-plugin-typescript-to-proptypes
Generate React PropTypes from TypeScript interfaces or type aliases
Plugins / Internationalization
- c-3po
Localization tool based on es6 template literals
react-intl
Extracts string messages for translation from modules that use
localize
Modify static jsx text and string attributes with function call. 🔧
Plugins / Types
flow-runtime
Turns Flow annotations into runtime checks. Part of
tcomb
Turns Flow annotations into typechecks with
jsdoc-to-assert
Turns JSDoc into runtime checks
runtyper
Detects type-mismatch operations in runtime without annotations
Plugins / Testing
Plugins / Optimization
groundskeeper-willie
Removes debugger and console calls
loop-optimizer
Transforms and calls to for loops. 🔧
closure-elimination
Transforms closures into separate functions
preval
Pre-evaluate code at build-time
transform-named-imports
Avoid including code that you don't need from modules you're importing
faster.js
Transforms native methods into faster equivalents. 🔧
optimize-i18n
Optimizing i18n bundle file by shorten the locale key
cloudinary
Compile cloudinary URLs at build time
object-to-json-parse
Converts from object literal to
Plugins / Syntax Sugar
implicit-return
Transforms last statement in a function block to a return statement
transform-iota
Golang-style . 🔧
offside-js
Coffeescript-like indented block syntax hack. 🔧🚧
trace
Syntax shortcuts for console logging
meaningful-logs
Adds file name and line number of caller to calls
implicit-function
Implicit functions via operator, transforming, for example, in
function-composition
Function piping and composition via operator, for example,
auto-await
Automatically every in functions
Plugins / Alternative Programming Paradigms
macros
Hygienic, non-syntactic macros. 🔧
contracts
Design by Contract; Includes preconditions, postconditions, and invariant conditions
transform-scala-lambda
Enable Scala-style lambdas (using ). 🔧
partial-application
Scala/Kotlin-esque partial application syntax for JavaScript (using ). 🔧
overload
Allow overloading default operators like or for specific classes. 🔧🚧
babel-macros
Enables zero-config, importable babel plugins
holes
Holes (like Scala and Elixir) to help point-free programming, using operators as functions. 🔧
Presets
env
which includes transforms based on the specified environment (browsers, node, electron, etc)
- React
Babel preset for all React plugins
React Optimize
A Babel preset and plugins for optimizing React code
Tooling
babel-watch
Reloads a node app on file changes
babel-time-travel
Time travel through babel transformations one by one
react-ast
Render babel ASTs with react
Nothing in this list matches your filter.
Featured in 1 awesome list
Each link jumps to the spot where the list mentions awesome-babel.
More related projects
matatbread/nodent288
filp/react-native-es6-reflux141
web-infra-dev/garfish2.6K
ronami/minipack3.2K
johnstonbl01/eslint-no-inferred-method-name27
shuhei/babel-angular2-app259
browserslist/browserslist13.1K
mathiasbynens/regexpu234
jhen0409/react-chrome-extension-boilerplate2.1K
dankilman/awe115
jaredpalmer/razzle11.1K