{"id":25246,"library":"es6-module-transpiler-js-brunch","title":"es6-module-transpiler-js-brunch","description":"Brunch plugin for Square's ES6 module transpiler, enabling ES6 module syntax (import/export) compilation to AMD or CommonJS. Version 0.1.0, last release in 2014. Not actively maintained. Key differentiator from similar plugins: no CoffeeScript dependency, enhanced configuration for module name mapping and wrapper type. Note: CommonJS support is broken; only AMD is practically useful. Requires disabling Brunch's default module wrapper.","status":"deprecated","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/ahacking/es6-module-transpiler-js-brunch","tags":["javascript","es6","transpiler","brunch"],"install":[{"cmd":"npm install es6-module-transpiler-js-brunch","lang":"bash","label":"npm"},{"cmd":"yarn add es6-module-transpiler-js-brunch","lang":"bash","label":"yarn"},{"cmd":"pnpm add es6-module-transpiler-js-brunch","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core transpilation engine","package":"es6-module-transpiler","optional":false},{"reason":"Build tool runtime peer dependency","package":"brunch","optional":true}],"imports":[{"note":"Plugin is configured via brunch config, not imported directly in code.","wrong":"import es6ModuleTranspiler from 'es6-module-transpiler-js-brunch'","symbol":"plugin","correct":"plugins: { es6ModuleTranspiler: { ... } } in brunch config"}],"quickstart":{"code":"// In brunch config (config.js or config.coffee)\nmodule.exports = {\n  plugins: {\n    es6ModuleTranspiler: {\n      match: /^app/,\n      wrapper: 'amd',\n      moduleName: (path) => 'myapp/' + path.replace(/\\.js$/, '')\n    }\n  },\n  modules: {\n    wrapper: false // Must disable brunch module wrapper\n  }\n}","lang":"javascript","description":"Demonstrates basic plugin configuration for AMD output with module name mapping."},"warnings":[{"fix":"Use wrapper: 'amd' and an AMD loader like require.js or ember-loader.","message":"CommonJS (cjs) wrapper does not produce usable code for typical interop; only AMD is supported.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Migrate to a modern tool like Babel or TypeScript with Brunch plugins (e.g., babel-brunch).","message":"Package is unmaintained since 2014; ES6 module transpiler is obsolete.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Add modules: { wrapper: false } to brunch config.","message":"Brunch's built-in module wrapper must be disabled via modules.wrapper: false, otherwise class conflicts occur.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Adjust the match pattern to include all desired directories.","message":"Plugin only processes files matching the match regex (default /^app/); files outside are not transpiled.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save es6-module-transpiler","cause":"Missing peer dependency es6-module-transpiler.","error":"Error: Cannot find module 'es6-module-transpiler'"},{"fix":"Set wrapper to 'amd' or 'cjs' in config.","cause":"Invalid wrapper option value.","error":"Module wrapper expected 'amd' or 'cjs', got 'xxx'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}