{"id":25556,"library":"eustia-babel","title":"eustia-babel","description":"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.","status":"deprecated","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/surunzi/eustia-babel","tags":["javascript","eustia","babel","es6","transpiler"],"install":[{"cmd":"npm install eustia-babel","lang":"bash","label":"npm"},{"cmd":"yarn add eustia-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add eustia-babel","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for ES2015 transpilation (though deprecated now)","package":"babel-preset-es2015","optional":false}],"imports":[{"note":"CommonJS module; no default ESM export available.","wrong":"import eustiaBabel from 'eustia-babel';","symbol":"default","correct":"const eustiaBabel = require('eustia-babel');"},{"note":"The package exports a factory function directly, not an object with a default property.","wrong":"handler: require('eustia-babel').default({presets: ['es2015']})","symbol":"transpiler handler","correct":"handler: require('eustia-babel')({presets: ['es2015']})"},{"note":"Options are passed as a plain object; see Babel documentation for available options.","wrong":"","symbol":"options","correct":"const options = {presets: ['es2015']}; const handler = require('eustia-babel')(options);"}],"quickstart":{"code":"// In your Eustia config file (e.g., eustia.config.js)\nmodule.exports = {\n  util: {\n    files: 'index.html',\n    extension: ['js', 'es6'],\n    transpiler: [\n      {\n        test: /\\.es6$/,\n        handler: require('eustia-babel')({\n          presets: ['es2015']\n        })\n      }\n    ]\n  }\n};","lang":"javascript","description":"Example Eustia configuration using eustia-babel to transpile .es6 files with the es2015 preset."},"warnings":[{"fix":"Migrate to @babel/preset-env directly or use a maintained Eustia plugin.","message":"Package is unmaintained and relies on deprecated Babel presets (babel-preset-es2015).","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Install required presets: npm install babel-preset-es2015","message":"Requires explicit installation of Babel presets; missing preset will cause runtime error.","severity":"breaking","affected_versions":"0.0.1"},{"fix":"Use require('eustia-babel') directly, not require('eustia-babel').default","message":"The package exports a factory function, not an object with a default export. Common mistake: using import or .default.","severity":"gotcha","affected_versions":"0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install babel-preset-es2015","cause":"Missing required Babel preset.","error":"Error: Cannot find module 'babel-preset-es2015'"},{"fix":"Change to: handler: require('eustia-babel')({presets: ['es2015']})","cause":"Using .default import syntax on a CommonJS factory export.","error":"TypeError: handler is not a function"},{"fix":"Ensure Babel core and preset versions match; consider switching to @babel/preset-env.","cause":"Using newer Babel version or preset format incompatible with this plugin's expectations.","error":"Module build failed: TypeError: config.presets[0] is not a function or plugin"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}