{"id":25942,"library":"mimosa-es6-module-transpiler","title":"mimosa-es6-module-transpiler","description":"An ES6 module transpiler plugin for the Mimosa build tool, version 0.6.0 (stable, no recent updates). It transpiles ES6 module syntax to AMD, CommonJS, or global module formats, wrapping square's es6-module-transpiler. Key differentiators: tight integration with Mimosa, support for CoffeeScript backtick escaping, and exclusion patterns for vendor files. However, it does not support source maps, has limited ES6 syntax coverage, and depends on an outdated transpiler that may not reflect current spec.","status":"maintenance","version":"0.6.0","language":"javascript","source_language":"en","source_url":"https://github.com/dbashford/mimosa-es6-module-transpiler","tags":["javascript","mimosa","mmodule","es6","harmony","module","amd","commonjs"],"install":[{"cmd":"npm install mimosa-es6-module-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add mimosa-es6-module-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add mimosa-es6-module-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"core transpilation library","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"This package is a Mimosa plugin and not typically imported directly. It is registered via Mimosa's module system.","wrong":"const es6Transpiler = require('mimosa-es6-module-transpiler')","symbol":"Default","correct":"import es6Transpiler from 'mimosa-es6-module-transpiler'"},{"note":"Do not call register manually; Mimosa handles plugin registration.","wrong":"require('mimosa-es6-module-transpiler').register()","symbol":"registration","correct":"// In mimosa-config: modules: ['es6-module-transpiler']"}],"quickstart":{"code":"// Install Mimosa (if not already)\nnpm install -g mimosa\n\n// Create a project and add config\n// In mimosa-config.coffee:\nmodules: ['es6-module-transpiler']\nes6Modules:\n  type:'amd'\n  inferName:true\n  exclude: [/[/\\\\]vendor[/\\\\]/, /[/\\\\]main[\\.-]/, /-main.js$/, /[/\\\\]common.js$/]\n  globals:{}\n\n// Write a file with ES6 module syntax, e.g., app.js:\nimport $ from 'jquery';\nexport default function() { return $('body'); };\n\n// Run Mimosa to build\nmimosa build","lang":"coffeescript","description":"Shows how to install, configure, and use the plugin to transpile ES6 modules to AMD."},"warnings":[{"fix":"Do not rely on source maps with this plugin. Consider alternative transpilers like Babel.","message":"Does not support source maps; existing source maps will be invalid.","severity":"breaking","affected_versions":">=0.1"},{"fix":"Switch to Babel or TypeScript for modern ES6+ module support.","message":"The ES6 spec has evolved; this transpiler may not support current syntax (e.g., default exports).","severity":"deprecated","affected_versions":">=0.1"},{"fix":"Use backticks around import/export statements in .coffee files.","message":"CoffeeScript backtick required for ES6 syntax to survive CoffeeScript compilation.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Review the exclude list and customize as needed for your project structure.","message":"Exclude regex patterns may accidentally include desired files if not careful.","severity":"gotcha","affected_versions":">=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 es6-module-transpiler in your project directory.","cause":"Missing dependency es6-module-transpiler","error":"Error: Cannot find module 'es6-module-transpiler'"},{"fix":"Ensure es6Modules.type is one of 'amd', 'common', or 'globals'.","cause":"The config option es6Modules.type is misspelled or not set","error":"TypeError: Cannot read property 'amd' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}