{"id":25021,"library":"broccoli-es6modules","title":"broccoli-es6modules","description":"A broccoli filter that transpiles ES6 modules to AMD, CJS, or UMD formats. It supports both 1-to-1 (per-file) and n-to-1 (bundled) transpilation using the esperanto library. Version 1.2.3 is the latest release, but the project is unmaintained as the Ember CLI team has moved to broccoli-babel-transpiler and ember-cli-babel. Key differentiator: it was designed specifically for the broccoli build tool and provides a simple API for ES6 module transpilation, though it lacks ongoing support and may not work with modern Node versions.","status":"abandoned","version":"1.2.3","language":"javascript","source_language":"en","source_url":"https://github.com/ember-cli/broccoli-es6modules","tags":["javascript"],"install":[{"cmd":"npm install broccoli-es6modules","lang":"bash","label":"npm"},{"cmd":"yarn add broccoli-es6modules","lang":"bash","label":"yarn"},{"cmd":"pnpm add broccoli-es6modules","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CommonJS-only; no ES module entry point exists.","wrong":"import ES6Modules from 'broccoli-es6modules';","symbol":"default","correct":"var ES6Modules = require('broccoli-es6modules');"},{"note":"If using ESM, a dynamic import or bundler handling is required, but the package itself is CJS.","wrong":null,"symbol":"default","correct":"import ES6Modules from 'broccoli-es6modules';"},{"note":"Only a default export; named destructuring will fail.","wrong":"const { ES6Modules } = require('broccoli-es6modules');","symbol":"ES6Modules","correct":"const ES6Modules = require('broccoli-es6modules');"}],"quickstart":{"code":"var broccoli = require('broccoli');\nvar ES6Modules = require('broccoli-es6modules');\nvar tree = './src';\nvar amdFiles = new ES6Modules(tree, { format: 'amd' });\nvar builder = new broccoli.Builder(amdFiles);\nbuilder.build().then(function(results) {\n  console.log('Build output directory:', results.directory);\n}).catch(function(err) {\n  console.error(err);\n});","lang":"javascript","description":"Shows how to transpile a source tree of ES6 modules to AMD format using broccoli-es6modules."},"warnings":[{"fix":"Migrate to broccoli-babel-transpiler or ember-cli-babel.","message":"This project is no longer maintained by the Ember CLI team.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Provide bundleOptions with entry and name when using format: 'umd'.","message":"UMD format throws an error if used without bundleOptions.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Switch to a modern transpiler like Babel.","message":"Depends on esperanto, which is no longer actively maintained.","severity":"breaking","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":"Run npm install broccoli-es6modules --save-dev","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'broccoli-es6modules'"},{"fix":"Use const ES6Modules = require('broccoli-es6modules');","cause":"Incorrect import syntax (destructured import) when using require.","error":"TypeError: ES6Modules is not a constructor"},{"fix":"Add bundleOptions: { entry: 'main.js', name: 'myLib' } to options.","cause":"Using UMD format without specifying bundleOptions.","error":"Error: umd format requires bundleOptions (entry & name)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}