Brunch plugin that compiles CoffeeScript files through coffee-script and then Square's es6-module-transpiler to produce AMD or CommonJS modules with ES6 module syntax (import/export). Version 0.1.0 is the latest and only release. This plugin is a stop-gap alternative to ember-cli for ES6 module transpiling in CoffeeScript codebases using Brunch. It is effectively limited to AMD output due to CommonJS interoperability issues. Requires manual backtick escaping of ES6 syntax in CoffeeScript.
npm install es6-module-transpiler-coffee-brunchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows configuration with brunch module wrapper disabled, transpiler set to AMD, and a CoffeeScript file using backtick-escaped ES6 import/export.
Use backticks around import/export statements as shown in README.
Set wrapper to 'amd' in configuration.
Remove coffee-script-brunch from package.json and run npm prune.
Set modules.wrapper: false in brunch config.
Use camelCase key: es6ModuleTranspiler in the plugins section.
Run: npm install es6-module-transpiler
Ensure CoffeeScript files are under a directory named 'app' or configure brunch's paths accordingly.