anonymous 88aeae25dd debian remove-trim-right.patch 6 anni fa
..
babel-cli b445b79734 Refactor move docs (#8108) 6 anni fa
babel-code-frame b445b79734 Refactor move docs (#8108) 6 anni fa
babel-core b445b79734 Refactor move docs (#8108) 6 anni fa
babel-generator 88aeae25dd debian remove-trim-right.patch 6 anni fa
babel-helper-annotate-as-pure b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-bindify-decorators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-builder-binary-assignment-operator-visitor b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-builder-react-jsx b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-call-delegate b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-define-map b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-explode-assignable-expression b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-explode-class b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-fixtures b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-function-name b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-get-function-arity b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-hoist-variables b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-member-expression-to-functions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-module-imports b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-module-transforms b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-optimise-call-expression b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-plugin-test-runner b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-plugin-utils b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-regex b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-remap-async-to-generator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-replace-supers b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-simple-access b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-split-export-declaration b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-transform-fixture-test-runner b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helper-wrap-function b445b79734 Refactor move docs (#8108) 6 anni fa
babel-helpers b445b79734 Refactor move docs (#8108) 6 anni fa
babel-highlight b445b79734 Refactor move docs (#8108) 6 anni fa
babel-node f838a7e9f1 Test on node 10 (#7908) 6 anni fa
babel-parser 6349118bed Change decoratorsBeforeExport default to false (#8113) 6 anni fa
babel-plugin-external-helpers b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-async-generator-functions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-class-properties b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-decorators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-do-expressions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-export-default-from b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-export-namespace-from b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-function-bind b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-function-sent b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-json-strings b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-logical-assignment-operators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-nullish-coalescing-operator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-numeric-separator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-object-rest-spread b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-optional-catch-binding b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-optional-chaining b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-pipeline-operator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-throw-expressions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-proposal-unicode-property-regex b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-async-generators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-bigint b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-class-properties b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-decorators 6349118bed Change decoratorsBeforeExport default to false (#8113) 6 anni fa
babel-plugin-syntax-do-expressions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-dynamic-import b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-export-default-from b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-export-namespace-from b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-flow b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-function-bind b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-function-sent b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-import-meta b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-json-strings b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-jsx b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-logical-assignment-operators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-nullish-coalescing-operator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-numeric-separator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-object-rest-spread b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-optional-catch-binding b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-optional-chaining b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-pipeline-operator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-throw-expressions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-syntax-typescript b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-arrow-functions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-async-to-generator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-block-scoped-functions b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-block-scoping b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-classes b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-computed-properties b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-destructuring b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-dotall-regex b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-duplicate-keys b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-exponentiation-operator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-flow-comments b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-flow-strip-types b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-for-of b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-function-name b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-instanceof b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-jscript b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-literals b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-member-expression-literals b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-modules-amd b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-modules-commonjs b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-modules-systemjs b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-modules-umd b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-new-target b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-object-assign b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-object-set-prototype-of-to-assign b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-object-super b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-parameters b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-property-literals b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-property-mutators b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-proto-to-assign b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-constant-elements b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-display-name b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-inline-elements b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-jsx b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-jsx-compat b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-jsx-self b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-react-jsx-source b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-regenerator b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-reserved-words b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-runtime b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-shorthand-properties b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-spread b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-sticky-regex b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-strict-mode b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-template-literals b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-typeof-symbol b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-typescript b445b79734 Refactor move docs (#8108) 6 anni fa
babel-plugin-transform-unicode-regex b445b79734 Refactor move docs (#8108) 6 anni fa
babel-polyfill b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-env b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-env-standalone b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-es2015 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-es2016 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-es2017 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-flow b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-react b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-stage-0 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-stage-1 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-stage-2 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-stage-3 b445b79734 Refactor move docs (#8108) 6 anni fa
babel-preset-typescript b445b79734 Refactor move docs (#8108) 6 anni fa
babel-register b445b79734 Refactor move docs (#8108) 6 anni fa
babel-runtime b445b79734 Refactor move docs (#8108) 6 anni fa
babel-standalone b445b79734 Refactor move docs (#8108) 6 anni fa
babel-template b445b79734 Refactor move docs (#8108) 6 anni fa
babel-traverse b445b79734 Refactor move docs (#8108) 6 anni fa
babel-types b445b79734 Refactor move docs (#8108) 6 anni fa
README.md daf0ca8680 Rename "babylon" to "@babel/parser" (#7937) 🎉 6 anni fa

README.md

Woah, what's going on here?

A monorepo, muhahahahahaha. See the monorepo design doc for reasoning.

Core Packages

Package Version Dependencies
@babel/core npm Dependency Status
@babel/parser npm Dependency Status
@babel/traverse npm Dependency Status
@babel/generator npm Dependency Status

@babel/core is the Babel compiler itself; it exposes the babel.transform method, where transformedCode = transform(src).code.

The compiler can be broken down into 3 parts:

The flow goes like this:

input string -> @babel/parser parser -> AST -> transformer[s] -> AST -> @babel/generator -> output string

Check out the babel-handbook for more information on this.

Other

Package Version Dependencies
@babel/cli npm Dependency Status
@babel/types npm Dependency Status
@babel/polyfill npm Dependency Status
@babel/runtime npm Dependency Status
@babel/register npm Dependency Status
@babel/template npm Dependency Status
@babel/helpers npm Dependency Status
@babel/code-frame npm Dependency Status
  • @babel/cli is the CLI tool that runs @babel/core and helps with outputting to a directory, a file, stdout and more (also includes @babel/node cli). Check out the docs.
  • @babel/types is used to validate, build and change AST nodes.
  • @babel/polyfill is literally a wrapper around core-js and regenerator-runtime. Check out the docs.
  • @babel/runtime is similar to the polyfill except that it doesn't modify the global scope and is to be used with @babel/plugin-transform-runtime (usually in library/plugin code). Check out the docs.
  • @babel/register is a way to automatically compile files with Babel on the fly by binding to Node.js require. Check out the docs.
  • @babel/template is a helper function that allows constructing AST nodes from a string presentation of the code; this eliminates the tedium of using @babel/types for building AST nodes.
  • @babel/helpers is a set of pre-made @babel/template functions that are used in some Babel plugins.
  • @babel/code-frame is a standalone package used to generate errors that print the source code and point to error locations.

Presets

After Babel 6, the default transforms were removed; if you don't specify any plugins/presets, Babel will just return the original source code.

The transformer[s] used in Babel are the independent pieces of code that transform specific things. For example: the es2015-arrow-functions transform specifically changes arrow functions into regular functions. A preset is simply an array of plugins that make it easier to run a whole a set of transforms without specifying each one manually.

Package Version Dependencies Description
@babel/preset-env npm Dependency Status automatically determines plugins and polyfills you need based on your supported environments

You can find community maintained presets on npm

Plugins

Plugins are the heart of Babel and what make it work.

You can find community plugins on npm.

Transform Plugins

There are many kinds of plugins: ones that convert ES6/ES2015 to ES5, transform to ES3, minification, JSX, flow, experimental features, and more. Check out our website for more.

Syntax Plugins

These just enable the transform plugins to be able to parse certain features (the transform plugins already include the syntax plugins so you don't need both): @babel/plugin-syntax-x. Check out our website for more.

Helpers

These are mostly for internal use in various plugins: @babel/helper-x.