Registry / web-framework / ethical-composer-middleware-babel

ethical-composer-middleware-babel

JSON →
library0.0.0jsnpmunverified

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.

npm install ethical-composer-middleware-babel
INSTALL
IMPORT
SIG · ETHICAL-COMPOSER-M
E
ethical-composer-middleware-babel
web-frameworkjavascriptv0.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import babelMiddleware from 'ethical-composer-middleware-babel'
const babelMiddleware = require('ethical-composer-middleware-babel')
Package is ESM-only (pre-release). No named exports documented.

Sets up a composer pipeline with Babel middleware to transpile files from /src to /dist.

import babelMiddleware from 'ethical-composer-middleware-babel'; import { compose } from 'ethical-composer'; const composer = compose( babelMiddleware({ babelOptions: { presets: ['@babel/preset-env'] } }) ); composer.process('/src', '/dist').then(() => { console.log('Transpilation complete'); });
Debug
Known issues
deprecatedThis package is part of the Ethical framework which is no longer actively maintained.
fix
Consider using modern alternatives like Webpack or Babel standalone.
affects: >=0.0.0
breakingPackage is pre-release (v0.0.0) and has no stable API. Breaking changes may occur at any time.
fix
Lock to specific commit or avoid using in production.
affects: 0.0.0
gotchaExpects an 'ethical-composer' instance; not a standalone Babel plugin.
fix
Ensure you compose it with ethical-composer, not used directly.
affects: >=0.0.0
gotchaDependencies may require additional Babel presets/plugins to be installed manually.
fix
Install required Babel presets/plugins explicitly in your project.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'ethical-utility-babel-directory-transpiler'
Missing transitive dependency; must be installed separately.
fix
npm install ethical-utility-babel-directory-transpiler
TypeError: babelMiddleware is not a function
Incorrect import style (CommonJS required?).
fix
Use ESM import: import babelMiddleware from 'ethical-composer-middleware-babel'
Error: Babel presets not found
Required Babel presets not installed.
fix
npm install @babel/preset-env --save-dev
Upgrade
Version history
0.0.0latest on npm
Audit
Dependencies
@babel/corerequiredCore Babel transpiler library
ethical-utility-babel-directory-transpilerrequiredUnderlying utility for directory-based Babel transpilation
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
ethical-composer-middleware-babel — npm install ethical-composer-middleware-babel · libregistry