{"schemaVersion":1,"id":"babel","name":"Babel","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/babel/","officialUrl":"https://github.com/babel/babel","isCatalog":false,"description":"A JavaScript compiler with plugins and presets: it transforms project syntax for selected runtimes and supports creating code transforms.","tasks":["Transform JavaScript for target runtimes","Choose presets and plugins and compare source code with compilation results"],"categoryIds":["infrastructure","quality"],"subcategoryIds":["infrastructure.developer","quality.review"],"tags":["Babel","build","Development"],"aliases":["babel/babel","babeljs","babel-compiler"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for Babel code: use, modification, distribution, and sale are permitted with the copyright notice and permission text retained; code is provided without warranties. Dependencies and connected third-party packages have their own licenses.","selectionGuide":{"purpose":"Transform JavaScript for target runtimes","chooseWhen":["Transform JavaScript for target runtimes","Choose presets and plugins and compare source code with compilation results"],"considerInstead":[],"requirements":["Define supported browsers or runtime versions and use documentation for the installed Babel version. Align plugin/preset configuration with the bundler; TypeScript type checking and polyfills are configured separately from syntax transformation."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for Babel code: use, modification, distribution, and sale are permitted with the copyright notice and permission text retained; code is provided without warranties. Dependencies and connected third-party packages have their own licenses."],"faq":[{"question":"What can you use for free in Babel?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Babel?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Babel?","answer":"MIT for Babel code: use, modification, distribution, and sale are permitted with the copyright notice and permission text retained; code is provided without warranties. Dependencies and connected third-party packages have their own licenses."},{"question":"How do you get started with Babel?","answer":"Define supported runtimes and required syntax transforms. Set targets or an aligned Browserslist configuration for @babel/preset-env; changing targets affects transform selection. Choose presets and plugins and compare source code with compilation results. JSX uses a separate React preset, while the TypeScript preset removes type annotations. Consider required runtime APIs and polyfills separately; syntax transformation alone does not add every missing API. Include the process in scripts or CI with a clear report. A possible check runs the compiler, type checker, and tests separately in the target environment so successful JavaScript output does not conceal type errors."},{"question":"What determines Babel's transformation result?","answer":"Babel transforms JavaScript based on the target environment and selected plugins/presets. The README links to documentation and the REPL; check specific configuration against project requirements."},{"question":"Does Babel replace TypeScript checking?","answer":"No. Babel can remove TypeScript annotations and generate JavaScript, but it does not check types. The documentation recommends separate TypeScript or Flow type checking; successful transformation does not establish type correctness."},{"question":"How do plugins, presets, and targets differ?","answer":"Plugins define individual transforms; presets group them. @babel/preset-env maps selected targets to required transforms; the documentation recommends Browserslist for shared browser configuration. Check installed-version parameters: available options change."},{"question":"Why does compiled code still fail in an older browser?","answer":"Syntax transformation and runtime API availability are separate concerns. Babel describes polyfills through third-party packages such as core-js; appropriate configuration and actual environment testing are required. A possible sequence identifies an unsupported API, checks targets, then adds the required compatibility and a test."}],"related":[],"sources":["https://github.com/babel/babel","https://raw.githubusercontent.com/babel/babel/HEAD/README.md","https://raw.githubusercontent.com/babel/babel/HEAD/LICENSE","https://www.open-source-tools.com/","https://babeljs.io/docs/","https://babeljs.io/docs/babel-preset-env","https://babeljs.io/docs/babel-plugin-transform-typescript"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Transform JavaScript for target runtimes.","inputs":["A repository, package manifests, and configuration.","A compatible runtime and the target build command.","Target browsers/runtime, JSX or TypeScript in source code, required module output, and a separate type-checking command."],"steps":["Define supported runtimes and required syntax transforms. Set targets or an aligned Browserslist configuration for @babel/preset-env; changing targets affects transform selection.","Choose presets and plugins and compare source code with compilation results. JSX uses a separate React preset, while the TypeScript preset removes type annotations. Consider required runtime APIs and polyfills separately; syntax transformation alone does not add every missing API.","Include the process in scripts or CI with a clear report. A possible check runs the compiler, type checker, and tests separately in the target environment so successful JavaScript output does not conceal type errors."],"checks":["A clean copy of the project reproduces the result.","Errors produce a nonzero exit code and clear diagnostics."]},"sources":["https://github.com/babel/babel","https://raw.githubusercontent.com/babel/babel/HEAD/README.md","https://raw.githubusercontent.com/babel/babel/HEAD/LICENSE","https://www.open-source-tools.com/","https://babeljs.io/docs/","https://babeljs.io/docs/babel-preset-env","https://babeljs.io/docs/babel-plugin-transform-typescript"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Build / code quality tool","kind":"tool","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/babel/babel","label":"Official source"},{"url":"https://raw.githubusercontent.com/babel/babel/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/babel/babel/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://babeljs.io/docs/","label":"What Babel transforms and the boundaries of type checking"},{"url":"https://babeljs.io/docs/babel-preset-env","label":"Targets, Browserslist, and preset-env"},{"url":"https://babeljs.io/docs/babel-plugin-transform-typescript","label":"TypeScript: transformation without type checking"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}