Transpile ES6 to ES5

npm install grunt-es6-transpiler
4 downloads in the last week
25 downloads in the last month

grunt-es6-transpiler Build Status

Transpile ES6 to ES5 with es6-transpiler

Issues with the output should be reported on the es6-transpiler issue tracker.

Getting Started

If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:

npm install --save-dev grunt-es6-transpiler

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


Tip: the load-grunt-tasks module makes it easier to load multiple grunt tasks.


    es6transpiler: {                           // Task
        dist: {                                // Target
            files: {                           // Dictionary of files
                'dist/app.js': 'src/app.js'    // Destination: Source

grunt.registerTask('default', ['es6transpiler']);


Use the es6-transpiler options, except for filename, src, outputToConsole, outputFilename.


MIT © Sindre Sorhus

npm loves you