I'm trying to transpile es6 to es5 but it is not working.
My Gruntfile.js
module.exports = function(grunt){
"use strict";
grunt.loadNpmTasks('grunt-babel');
grunt.initConfig({
"babel": {
options: {
sourceMap: true
},
dist: {
files: {
"dist/app.js": "app.js"
}
}
}
});
grunt.registerTask("default", ["babel"]);
}
when I run grunt the file dist/app.js is the the same off app.js
Is anything wrong?