awesome-babel

JavaScript optimizer

A curated collection of Babel plugins and presets for optimizing JavaScript code

😎A list of awesome Babel plugins, presets, etc.

GitHub

867 stars
34 watching
47 forks
last commit: about 2 years ago
Linked from 1 awesome list

awesomeawesome-listbabellist

Awesome Babel / Parsers

babel-eslint2,966about 5 years agoESLint using Babel as the parser

Awesome Babel / Plugins / General Plugins

external-helpersMoves helper functions to a single imported module
fast-async604almost 8 years agoUses nodent to compile async/await to fast Promise output
feature-flags57about 5 years agoHelper for managing application feature flags
idx1,685over 2 years agolibrary + babel plugin for a existential function
transform-builtin-extend148over 4 years agoEnable extending builtin types like and , which require special treatment and require static analysis to detect
console-source37almost 6 years agoPrepends the file name and line numbers for all console commands
version5over 7 years agoBabel plugin replace defined identifier to pkg.version
babel-plugin-debug-toolsBabeljs Debug Tools helps you insert debug code and easely remove it when deploy to production

Awesome Babel / Plugins / Module Resolution

lodash1,954over 3 years agoCherry-picks Lodash modules so you don’t have to
ramda311over 3 years agoCherry-picks Ramda modules so you don’t have to
module-resolver3,467over 2 years agoCustom module resolver
root-import1,176almost 4 years agoImport modules from the root with syntax
webpack-alias150over 3 years agoAllows you to use webpack aliases and most of webpack resolve features in Babel
hash-resolve7over 6 years agoAllows you to use instead of , the number of needed is worked out by the plugin
rewrite-module-path2about 2 years agoRewrite module resolving path

Awesome Babel / Plugins / React

React Optimize1,672over 9 years agoA Babel preset and plugins for optimizing React code
React Transform1,079about 8 years agoInstrument React components with custom transforms
react-docgen162almost 2 years agoMakes propTypes comments accessible at runtime for use with documentation generators
react-require159about 2 years agoAdds React import declaration if file contains JSX tags
transform-react-remove-prop-types896almost 5 years agoRemoves unnecessary React propTypes from the production build
transform-react-jsx-self43,304almost 2 years agoAdds a property to JSX tags for debugging. Don't use in production
transform-react-constant-elementsHoist elements that can be marked as constant to the highest scope for reuse
transform-react-inline-elementsReplaces with a helper that is more optimized for production
react-hyperscript20about 9 years agoHyperScript syntax for React components without runtime overhead
react-import-extends10over 8 years agoExtends 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-function24almost 5 years agoTransforms React class components into a function, if possible
babel-plugin-hoist-facc8almost 8 years agoTransforms function as child components to hoist the children function to highest scope
react-hiccup16over 3 years agoHiccup syntax for React components
babel-plugin-framer-x15almost 8 years agoRemoves Framer X markup from your components. Lets you use Framer X components in a Storybook or real application
babel-plugin-react-directive28about 3 years agoUse directive in React, for example, you can use 、 in jsx just as 、 in Vue
zacs432about 3 years ago"styled components"-ish syntax without performance overhead
babel-plugin-typescript-to-proptypes367over 3 years agoGenerate React PropTypes from TypeScript interfaces or type aliases

Awesome Babel / Plugins / Internationalization

c-3poLocalization tool based on es6 template literals
react-intl14,345almost 2 years agoExtracts string messages for translation from modules that use
localize10about 8 years agoModify static jsx text and string attributes with function call. πŸ”§

Awesome Babel / Plugins / Types

flow-runtime802almost 4 years agoTurns Flow annotations into runtime checks. Part of
tcomb482almost 7 years agoTurns Flow annotations into typechecks with
jsdoc-to-assert55almost 7 years agoTurns JSDoc into runtime checks
runtyper116almost 4 years agoDetects type-mismatch operations in runtime without annotations

Awesome Babel / Plugins / Testing

espower93over 3 years agoAnnotates call sites for descriptive messages when using
istanbul631about 2 years agoInstruments your code with Istanbul coverage
rewire842about 3 years agoAdds the ability to rewire module dependencies. This enables to mock modules for testing purposes

Awesome Babel / Plugins / Optimization

groundskeeper-willie63almost 4 years agoRemoves debugger and console calls
loop-optimizer74about 6 years agoTransforms and calls to for loops. πŸ”§
closure-elimination367almost 4 years agoTransforms closures into separate functions
preval1,358over 4 years agoPre-evaluate code at build-time
transform-named-imports38over 3 years agoAvoid including code that you don't need from modules you're importing
faster.js437over 3 years agoTransforms native methods into faster equivalents. πŸ”§
optimize-i18n14almost 8 years agoOptimizing i18n bundle file by shorten the locale key
cloudinary24over 3 years agoCompile cloudinary URLs at build time
object-to-json-parse159over 3 years agoConverts from object literal to

Awesome Babel / Plugins / Syntax Sugar

implicit-return25over 7 years agoTransforms last statement in a function block to a return statement
transform-iota4over 8 years agoGolang-style . πŸ”§
offside-js8almost 8 years agoCoffeescript-like indented block syntax hack. πŸ”§πŸš§
trace63over 8 years agoSyntax shortcuts for console logging
meaningful-logs50over 3 years agoAdds file name and line number of caller to calls
implicit-function24about 9 years agoImplicit functions via operator, transforming, for example, in
function-composition63about 8 years agoFunction piping and composition via operator, for example,
auto-await27over 7 years agoAutomatically every in functions

Awesome Babel / Plugins / Alternative Programming Paradigms

macros262over 10 years agoHygienic, non-syntactic macros. πŸ”§
contracts267over 7 years agoDesign by Contract; Includes preconditions, postconditions, and invariant conditions
transform-scala-lambda54over 7 years agoEnable Scala-style lambdas (using ). πŸ”§
partial-application58almost 8 years agoScala/Kotlin-esque partial application syntax for JavaScript (using ). πŸ”§
overload46about 9 years agoAllow overloading default operators like or for specific classes. πŸ”§πŸš§
babel-macros2,627over 3 years agoEnables zero-config, importable babel plugins
holes48over 8 years agoHoles (like Scala and Elixir) to help point-free programming, using operators as functions. πŸ”§

Awesome Babel / Presets

env43,304almost 2 years agowhich includes transforms based on the specified environment (browsers, node, electron, etc)
ReactBabel preset for all React plugins
React Optimize1,672over 9 years agoA Babel preset and plugins for optimizing React code

Awesome Babel / Tooling

babel-watch529about 3 years agoReloads a node app on file changes
babel-time-travel344about 8 years agoTime travel through babel transformations one by one
react-ast321over 2 years agoRender babel ASTs with react

Backlinks from these awesome lists:

More related projects: