{"id":25211,"library":"ember-cli-6to5","title":"ember-cli-6to5","description":"An Ember-CLI plugin that uses 6to5 (the precursor to Babel) to transpile ES6 syntax to ES5 for Ember-CLI projects. Version 3.0.0 is the latest stable release. This package is historical and has been superseded by ember-cli-babel. It blacklists the 6to5 module transform by default in favor of Ember-CLI's own ES6 module transpiler. Key differentiator: it was an early integration of 6to5/Babel into Ember-CLI, now obsolete.","status":"deprecated","version":"3.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/6to5/ember-cli-6to5","tags":["javascript","ember-addon"],"install":[{"cmd":"npm install ember-cli-6to5","lang":"bash","label":"npm"},{"cmd":"yarn add ember-cli-6to5","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-cli-6to5","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This package is deprecated; ember-cli-babel is the current replacement.","package":"ember-cli-babel","optional":false}],"imports":[{"note":"ember-cli-6to5 transpiles ES6 to ES5 but module syntax is handled by Ember-CLI's own transpiler; avoid mixing module systems.","wrong":"var Ember = require('ember'); // CJS require, but Ember-CLI uses AMD","symbol":"default","correct":"import Ember from 'ember'; // ES6 modules"},{"note":"Configuration is done via EmberApp options, not in ES module import.","wrong":"// Attempting to configure in ES module syntax","symbol":"config","correct":"// In Brocfile.js:\nvar app = new EmberApp({\n  '6to5': {\n    comments: false\n  }\n});"},{"note":"By default compileModules is false; set to true to let 6to5 handle module transpilation instead of Ember-CLI.","wrong":"// Omitting compileModules and expecting 6to5 to handle modules","symbol":"compileModules","correct":"// In Brocfile.js:\nvar app = new EmberApp({\n  '6to5': {\n    compileModules: true\n  }\n});"}],"quickstart":{"code":"// 1. Install\nnpm install --save-dev ember-cli-6to5\n\n// 2. Configure in Brocfile.js\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\nvar app = new EmberApp({\n  '6to5': {\n    // Disable comments for smaller output\n    comments: false\n  }\n});\n\n// 3. Use ES6 features in your Ember app\n// app/components/my-component.js\nimport Ember from 'ember';\nexport default Ember.Component.extend({\n  didInsertElement() {\n    let message = `Hello from ES6!`;\n    console.log(message);\n  }\n});\n\nmodule.exports = app.toTree();","lang":"javascript","description":"Installs ember-cli-6to5, configures it in Brocfile.js to disable comments, and shows usage of ES6 template literals and arrow functions in an Ember component."},"warnings":[{"fix":"Run 'npm uninstall --save-dev ember-cli-6to5 && npm install --save-dev ember-cli-babel' and update Brocfile.js to use 'babel' instead of '6to5'.","message":"ember-cli-6to5 is deprecated; use ember-cli-babel instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Set compileModules: true in the 6to5 options to enable 6to5 module transpilation.","message":"By default, module compilation is disabled; 6to5 does not transpile ES6 modules. Ember-CLI's own module transpiler is used instead.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"Migrate to ember-cli-babel for compatibility with modern Babel.","message":"The package is named after 6to5, which was renamed to Babel. Ember-cli-6to5 only works with 6to5 v1.x, not with later Babel versions.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure 6to5 is installed: 'npm install --save-dev 6to5' or migrate to ember-cli-babel.","cause":"The package ember-cli-6to5 expects the '6to5' global, but if 6to5 is not installed or is version mismatched, the addon fails.","error":"Cannot find module '6to5'"},{"fix":"Configure 6to5 options within the EmberApp constructor as shown: var app = new EmberApp({ '6to5': { /* options */ } });","cause":"The configuration in Brocfile.js for the '6to5' key is missing or incorrectly placed.","error":"Error: 6to5 options must be an object. Received undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}