Broccoli-ESNext

raw JSON →
0.5.2 verified Fri May 01 auth: no javascript deprecated

This package is deprecated and no longer maintained. It was a Broccoli plugin for transpiling ES2015+ code using Babel. The latest version (0.5.2) is extremely outdated. Users should migrate to broccoli-babel-transpiler, which is actively maintained and supports modern Babel versions and features. The package has negligible usage and no recent releases.

error Cannot find module 'broccoli-esnext'
cause Package is deprecated and may have been removed from npm or not installed.
fix
Install broccoli-babel-transpiler instead: npm install --save-dev broccoli-babel-transpiler
deprecated This package is deprecated and no longer maintained.
fix Migrate to broccoli-babel-transpiler.
npm install broccoli-esnext
yarn add broccoli-esnext
pnpm add broccoli-esnext

Shows how to use broccoli-babel-transpiler as a replacement for broccoli-esnext.

// This package is deprecated. Use broccoli-babel-transpiler.
import Babel from 'broccoli-babel-transpiler';
import { readFileSync, writeFileSync } from 'fs';
import { join } from 'path';
import { SourceMapConsumer, SourceMapGenerator } from 'source-map';

let tree = './src';
tree = Babel(tree, {
  presets: ['@babel/preset-env'],
  sourceMaps: 'inline',
});
console.log('Transpiling with broccoli-babel-transpiler...');
// Output the result
import { Builder } from 'broccoli';
const builder = new Builder(tree);
builder.build().then(() => {
  console.log('Build succeeded.');
}).catch(err => {
  console.error('Build failed:', err);
});