{"library":"mimosa-esperanto-es6-modules","title":"mimosa-esperanto-es6-modules","description":"An ES6 module transpiler plugin for Mimosa build tool that uses Esperanto to convert ES6 module syntax (import/export) to AMD or CommonJS compatible JavaScript with inline source maps. Version 0.3.4 is the latest release; the package appears to be in maintenance mode, with no updates since 2015. It wraps the now-deprecated Esperanto library, which was a predecessor to Babel-like tools. Key differentiator: integrates directly with Mimosa's asset pipeline, allowing automatic transpilation during build. Alternative to Babel integration for Mimosa, but limited to module syntax transpilation only (no ES6 features like arrow functions, classes, etc.). Requires Node >=0.10.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install mimosa-esperanto-es6-modules"],"cli":null},"imports":["import esperanto from 'esperanto'","Add 'esperanto-es6-modules' to your mimosa config's `modules` array in `mimosa-config.js`","type EsperantoOptions = { type: 'amd' | 'commonjs'; exclude: RegExp[]; options: { strict: boolean } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// In mimosa-config.js\nmodule.exports = {\n  modules: ['esperanto-es6-modules'],\n  esperanto: {\n    type: 'commonjs',\n    exclude: [/[/\\\\]vendor[/\\\\]/, /[/\\\\]main[\\.-]/, /\\.main\\.js$/, /[/\\\\]common\\.js$/],\n    options: {\n      strict: true\n    }\n  }\n};\n\n// Input (ES6 module): src/app.js\nimport { version } from './utils';\nexport function greet() {\n  return 'Hello ' + version;\n}\n\n// Output (CommonJS via mimosa build)\nvar esperanto = require('esperanto');\n// Mimosa processes files automatically; no direct call needed.","lang":"javascript","description":"Shows how to configure mimosa-esperanto-es6-modules in a Mimosa project to transpile ES6 modules to CommonJS.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}