brunch-es6-transpiler
raw JSON → 0.0.1 verified Fri May 01 auth: no javascript abandoned
A Brunch plugin that transpiles ES6 (ES2015) JavaScript to ES5 using the es6-transpiler library. Version 0.0.1 is the only release, with no updates since 2015; the plugin is effectively abandoned. It integrates as a Brunch build pipeline plugin, but the underlying es6-transpiler library has long been superseded by Babel. This plugin lacks active maintenance and may break with modern Brunch versions. It was an early attempt at ES6 transpilation for Brunch projects, now obsolete.
Common errors
error Error: Cannot find module 'es6-transpiler' ↓
cause es6-transpiler not installed as a dependency.
fix
Run 'npm install es6-transpiler --save'
error TypeError: brunchES6Transpiler is not a function ↓
cause Plugin not properly configured in brunch-config.js.
fix
Ensure the plugin is listed under the 'plugins' object in brunch-config.js, not as a separate require.
Warnings
breaking Plugin requires older Brunch versions (pre-2.0); incompatible with Brunch 2+. ↓
fix Use a modern transpiler plugin like babel-brunch.
deprecated es6-transpiler library is unmaintained and doesn't support full ES2015. Use Babel instead. ↓
fix Switch to babel-brunch or @babel/preset-env.
gotcha Plugin name in Brunch config uses camelCase 'brunchES6Transpiler', not hyphens. ↓
fix Use 'brunchES6Transpiler' as the config key.
Install
npm install brunch-es6-transpiler yarn add brunch-es6-transpiler pnpm add brunch-es6-transpiler Imports
- BrunchES6Transpiler wrong
const BrunchES6Transpiler = require('brunch-es6-transpiler');correctmodule.exports = {plugins: {brunchES6Transpiler: {}} }
Quickstart
// brunch-config.js
module.exports = {
plugins: {
brunchES6Transpiler: {
// Options for es6-transpiler
transpile: true,
blockBinding: true,
globals: {}
}
}
};