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.

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';.
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.
npm install broccoli-esbuild-transpiler
yarn add broccoli-esbuild-transpiler
pnpm add broccoli-esbuild-transpiler

Basic usage of broccoli-esbuild-transpiler to transpile files from 'input' directory with ESBuild options.

const BroccoliESBuildTranspiler = require('broccoli-esbuild-transpiler');
const node = new BroccoliESBuildTranspiler('input', {
  esbuild: {
    loader: { '.js': 'jsx' },
    target: 'es2015'
  }
});
module.exports = node;