{"id":26966,"library":"ethical-composer-middleware-babel","title":"ethical-composer-middleware-babel","description":"A Babel transpiler middleware for the Ethical framework's composer, enabling file transformation as part of a build pipeline. Version 0.0.0 is pre-release, with no stable releases yet. It integrates with the ethical-composer ecosystem to provide Babel transpilation middleware. Differentiators: part of a larger framework with a moral obligation to simplicity and scalability; designed for use with ethical-composer-emitter-watcher and other middlewares. Currently in early development with no published API stability.","status":"deprecated","version":"0.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/Ethically/ethical-composer-middleware-babel","tags":["javascript"],"install":[{"cmd":"npm install ethical-composer-middleware-babel","lang":"bash","label":"npm"},{"cmd":"yarn add ethical-composer-middleware-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add ethical-composer-middleware-babel","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core Babel transpiler library","package":"@babel/core","optional":false},{"reason":"Underlying utility for directory-based Babel transpilation","package":"ethical-utility-babel-directory-transpiler","optional":false}],"imports":[{"note":"Package is ESM-only (pre-release). No named exports documented.","wrong":"const babelMiddleware = require('ethical-composer-middleware-babel')","symbol":"default","correct":"import babelMiddleware from 'ethical-composer-middleware-babel'"}],"quickstart":{"code":"import babelMiddleware from 'ethical-composer-middleware-babel';\nimport { compose } from 'ethical-composer';\n\nconst composer = compose(\n  babelMiddleware({\n    babelOptions: {\n      presets: ['@babel/preset-env']\n    }\n  })\n);\n\ncomposer.process('/src', '/dist').then(() => {\n  console.log('Transpilation complete');\n});","lang":"typescript","description":"Sets up a composer pipeline with Babel middleware to transpile files from /src to /dist."},"warnings":[{"fix":"Consider using modern alternatives like Webpack or Babel standalone.","message":"This package is part of the Ethical framework which is no longer actively maintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Lock to specific commit or avoid using in production.","message":"Package is pre-release (v0.0.0) and has no stable API. Breaking changes may occur at any time.","severity":"breaking","affected_versions":"0.0.0"},{"fix":"Ensure you compose it with ethical-composer, not used directly.","message":"Expects an 'ethical-composer' instance; not a standalone Babel plugin.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Install required Babel presets/plugins explicitly in your project.","message":"Dependencies may require additional Babel presets/plugins to be installed manually.","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":"npm install ethical-utility-babel-directory-transpiler","cause":"Missing transitive dependency; must be installed separately.","error":"Cannot find module 'ethical-utility-babel-directory-transpiler'"},{"fix":"Use ESM import: import babelMiddleware from 'ethical-composer-middleware-babel'","cause":"Incorrect import style (CommonJS required?).","error":"TypeError: babelMiddleware is not a function"},{"fix":"npm install @babel/preset-env --save-dev","cause":"Required Babel presets not installed.","error":"Error: Babel presets not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}