broccoli-esbuild-transpiler
raw JSON → 1.0.0-alpha.0 verified Fri May 01 auth: no javascript abandoned
Broccoli plugin for transpiling JavaScript/TypeScript code using ESBuild. Currently at version 1.0.0-alpha.0, this is an early-stage package with no stable release or documented usage. The author has not provided any README or usage instructions, making it risky for production use. It requires Node >=12.0.0 and depends on the Broccoli build tool ecosystem. Differentiators are unclear; it may offer fast ESBuild-based transpilation within Broccoli pipelines.
Common errors
error Cannot find module 'broccoli-esbuild-transpiler' ↓
cause Package may not be installed or not published correctly.
fix
Run
npm install broccoli-esbuild-transpiler and ensure version >=0.0.0. error TypeError: BroccoliESBuildTranspiler is not a constructor ↓
cause Incorrect import or require pattern.
fix
Use
const BroccoliESBuildTranspiler = require('broccoli-esbuild-transpiler').default; or import BroccoliESBuildTranspiler from 'broccoli-esbuild-transpiler';. Warnings
breaking Package is at version 1.0.0-alpha.0 and has no stable API. ↓
fix Avoid using in production; wait for stable release or use alternative like broccoli-babel-transpiler.
gotcha No README or documentation provided. ↓
fix Check source code for usage if needed; consider alternative packages.
Install
npm install broccoli-esbuild-transpiler yarn add broccoli-esbuild-transpiler pnpm add broccoli-esbuild-transpiler Imports
- default wrong
const { BroccoliESBuildTranspiler } = require('broccoli-esbuild-transpiler')correctimport BroccoliESBuildTranspiler from 'broccoli-esbuild-transpiler' - BroccoliESBuildTranspiler
import BroccoliESBuildTranspiler from 'broccoli-esbuild-transpiler'
Quickstart
const BroccoliESBuildTranspiler = require('broccoli-esbuild-transpiler');
const node = new BroccoliESBuildTranspiler('input', {
esbuild: {
loader: { '.js': 'jsx' },
target: 'es2015'
}
});
module.exports = node;