Compiles ECMAScript 6 (harmony) files, optionally merging and generating source maps.
Grunt task that uses google traceur compiler to build ECMAScript 6 (harmony) projects, optionally merging and generating source maps.
npm install grunt-traceur-build --save-dev
In your project's Gruntfile, add a section named
traceur_build to the data object passed into
Almost all options are passed to the traceur compiler directly, see the section below for the default values.
It will by default generate source maps for debugging(as far as I know only google chrome and node-inspector support this feature. In node.js, stack traces will display the original filenames/location if you install the node-source-map-support package