@@ -29,7 +29,7 @@ module.exports = function(grunt) {
29
29
"babel" : {
30
30
options : {
31
31
sourceMap : false ,
32
- presets : [ "babel-preset-es2015 " ]
32
+ presets : [ "babel-preset-env " ]
33
33
} ,
34
34
dist : {
35
35
files : {
@@ -45,7 +45,7 @@ module.exports = function(grunt) {
45
45
} ,
46
46
uglify : {
47
47
options : {
48
- banner : "/*\n<%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/" ,
48
+ banner : "/*\n <%= grunt.template.today('yyyy') %> <%= pkg.author %>\n @version <%= pkg.version %>\n*/" ,
49
49
sourceMap : true ,
50
50
sourceMapIncludeSources : true
51
51
} ,
@@ -76,7 +76,7 @@ module.exports = function(grunt) {
76
76
grunt . loadNpmTasks ( "grunt-eslint" ) ;
77
77
grunt . task . registerTask ( "babili" , "Minifies ES2016+ code" , function ( ) {
78
78
var data = fs . readFileSync ( path . join ( __dirname , "lib" , "filesize.es6.js" ) , "utf8" ) ,
79
- minified = require ( "babel-core" ) . transform ( data , { sourceFileName : "filesize.es6.js" , sourceMaps : true , presets : [ "babili " ] } ) ,
79
+ minified = require ( "babel-core" ) . transform ( data , { sourceFileName : "filesize.es6.js" , sourceMaps : true , presets : [ "minify " ] } ) ,
80
80
pkg = require ( path . join ( __dirname , "package.json" ) ) ,
81
81
banner = "/*\n " + new Date ( ) . getFullYear ( ) + " " + pkg . author + "\n @version " + pkg . version + "\n*/\n\"use strict\";" ;
82
82
0 commit comments