eustia-babel

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

Babel transpiler plugin for the Eustia utility library generator. Version 0.0.1 provides a handler that transpiles ES6+ files via Babel presets within Eustia's build pipeline. It requires manual installation of presets (e.g., babel-preset-es2015) and is tightly coupled to Eustia's configuration format. No active development or updates observed; the package is essentially a thin wrapper around Babel, with no versions beyond 0.0.1. Alternative: use Babel directly.

error Error: Cannot find module 'babel-preset-es2015'
cause Missing required Babel preset.
fix
Run: npm install babel-preset-es2015
error TypeError: handler is not a function
cause Using .default import syntax on a CommonJS factory export.
fix
Change to: handler: require('eustia-babel')({presets: ['es2015']})
error Module build failed: TypeError: config.presets[0] is not a function or plugin
cause Using newer Babel version or preset format incompatible with this plugin's expectations.
fix
Ensure Babel core and preset versions match; consider switching to @babel/preset-env.
deprecated Package is unmaintained and relies on deprecated Babel presets (babel-preset-es2015).
fix Migrate to @babel/preset-env directly or use a maintained Eustia plugin.
breaking Requires explicit installation of Babel presets; missing preset will cause runtime error.
fix Install required presets: npm install babel-preset-es2015
gotcha The package exports a factory function, not an object with a default export. Common mistake: using import or .default.
fix Use require('eustia-babel') directly, not require('eustia-babel').default
npm install eustia-babel
yarn add eustia-babel
pnpm add eustia-babel

Example Eustia configuration using eustia-babel to transpile .es6 files with the es2015 preset.

// In your Eustia config file (e.g., eustia.config.js)
module.exports = {
  util: {
    files: 'index.html',
    extension: ['js', 'es6'],
    transpiler: [
      {
        test: /\.es6$/,
        handler: require('eustia-babel')({
          presets: ['es2015']
        })
      }
    ]
  }
};