How to handle 'code generator has deoptimised styling' message from gulp-babel

前端 未结 1 493
暗喜
暗喜 2021-02-06 08:14

I\'ve just employed gulp-babel to my gulp file with the following

var babel = require(\'gulp-babel\');

return gulp.src(files.concat.js.myModule)
           


        
相关标签:
1条回答
  • 2021-02-06 08:58

    Turns out the compact option is set to auto by default which removes "superfluous whitespace characters and line terminators [...] on input sizes >100KB".

    If this is not what you want, you can set the compact option to false...

    .pipe(babel({compact: false}))
    
    0 讨论(0)
提交回复
热议问题