{"id":25016,"library":"broccoli-6to5-transpiler","title":"broccoli-6to5-transpiler (deprecated, part of broccoli-babel-transpiler)","description":"This package is deprecated. It was the Broccoli plugin for transpiling ES6 to ES5 using 6to5 (the original name of Babel). The project has been renamed and migrated to `broccoli-babel-transpiler`, which is actively maintained with the latest version v8.0.2 (January 2025). The current package (broccoli-6to5-transpiler) is archived and should not be used. Instead, use `broccoli-babel-transpiler` with `@babel/core` as a peer dependency. Key differentiator: it integrates Babel into the Broccoli build system, supporting Babel plugins and presets, but this deprecated version is incompatible with modern Babel (v7+).","status":"renamed","version":"3.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/6to5/broccoli-6to5-transpiler","tags":["javascript","broccoli-plugin","transpiler","es6","ecmascript","ecmascript6","harmony","js"],"install":[{"cmd":"npm install broccoli-6to5-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add broccoli-6to5-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add broccoli-6to5-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Since v8.0.0 of broccoli-babel-transpiler, @babel/core is moved to peer dependencies; this package does not bundle its own Babel version.","package":"@babel/core","optional":false}],"imports":[{"note":"The package was renamed to 'broccoli-babel-transpiler'. Do not use the old name 'broccoli-6to5-transpiler'. Use default import (or require).","wrong":"const transpile = require('broccoli-6to5-transpiler');","symbol":"default","correct":"import transpile from 'broccoli-babel-transpiler';"},{"note":"The new package name is 'broccoli-babel-transpiler'. This is the default export.","wrong":"const BroccoliBabelTranspiler = require('broccoli-6to5-transpiler');","symbol":"BroccoliBabelTranspiler","correct":"import BroccoliBabelTranspiler from 'broccoli-babel-transpiler';"},{"note":"The options format changed from 6to5 style (e.g., 'blacklist') to Babel 7+ style (e.g., 'presets', 'plugins'). The old 'blacklist' option is deprecated; use 'exclude' in preset-env.","wrong":"const tree = require('broccoli-6to5-transpiler')('lib', { blacklist: ['es6.classes'] });","symbol":"options","correct":"import transpile from 'broccoli-babel-transpiler'; const tree = transpile('lib', { presets: [['@babel/preset-env', { targets: { node: 'current' } }]] });"}],"quickstart":{"code":"// Correct usage with broccoli-babel-transpiler (NOT the deprecated broccoli-6to5-transpiler)\n// Brocfile.js\nimport { createBuilder, createWatcher } from 'broccoli';\nimport transpile from 'broccoli-babel-transpiler';\nimport funnel from 'broccoli-funnel';\n\nconst app = 'src';\nconst scripts = funnel(app, { include: ['**/*.js'] });\nconst transpiled = transpile(scripts, {\n  presets: [\n    ['@babel/preset-env', {\n      targets: { browsers: ['last 2 versions'] },\n      modules: false\n    }]\n  ]\n});\n\nconst builder = createBuilder(transpiled);\n// Export or use the builder as needed\nexport default transpiled;","lang":"javascript","description":"Demonstrates how to transpile ES6+ JavaScript with Babel in a Broccoli build pipeline using the current 'broccoli-babel-transpiler' package, not the deprecated 'broccoli-6to5-transpiler'."},"warnings":[{"fix":"Replace 'broccoli-6to5-transpiler' with 'broccoli-babel-transpiler' in package.json and update imports accordingly.","message":"Package 'broccoli-6to5-transpiler' is renamed and deprecated in favor of 'broccoli-babel-transpiler'. npm registry shows no updates since 2015.","severity":"deprecated","affected_versions":">=0"},{"fix":"Use Babel 7+ configuration: 'presets', 'plugins', 'targets' instead of 6to5-specific options.","message":"6to5 options (e.g., 'blacklist', 'optional') are not supported in Babel 7+. Using them will cause errors.","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Install @babel/core: npm install --save-dev @babel/core","message":"Since v8.0.0, @babel/core must be installed as a peer dependency. Missing it leads to 'Cannot find module @babel/core'.","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Update Node.js to version 16+ (or use v7.x of broccoli-babel-transpiler for Node 14 compatibility).","message":"Node.js 14 support is dropped in broccoli-babel-transpiler v8.0.0. The package may fail on Node 14.","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Migrate to 'broccoli-babel-transpiler' and configure Babel presets appropriately for modern syntax.","message":"The package 'broccoli-6to5-transpiler' v3.0.0 is archived; its API and behavior are frozen. It does not support modern JavaScript features like async/await without additional plugins.","severity":"gotcha","affected_versions":"~3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev @babel/core","cause":"The package requires @babel/core as a peer dependency (since v8.0.0 of broccoli-babel-transpiler).","error":"Cannot find module '@babel/core'"},{"fix":"Use 'broccoli-babel-transpiler' instead: const transpile = require('broccoli-babel-transpiler');","cause":"The package 'broccoli-6to5-transpiler' is deprecated and may not be properly installed or the import is wrong.","error":"Error: broccoli-6to5-transpiler is not a function"},{"fix":"Use @babel/preset-env and configure 'exclude' if needed: presets: [['@babel/preset-env', { exclude: ['transform-classes'] }]]","cause":"The old 6to5 'blacklist' option is no longer valid in Babel 7+.","error":"The 'blacklist' option is not supported in @babel/preset-env"},{"fix":"Ensure you have installed 'broccoli-babel-transpiler' and import it correctly.","cause":"Using an incorrect import path or the package is not installed (misnamed).","error":"Cannot read property 'transpile' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}