hanai / fis-parser-es6-babel

A parser plugin for fis to turn ES6+ code into ES5 friendly code with babel.
MIT License
11 stars 4 forks source link

The code generator has deoptimised the styling of xxx.js exceeds the max of "100KB". #1

Open garygchai opened 8 years ago

garygchai commented 8 years ago

100KB for most js files is too small. I think It shold be configurable such as: fis.match('*.{js,es6}', { rExt: '.js', parser: fis.plugin('es6-babel', { maxSize: 100 }) });

BobSadan commented 6 years ago

I had to seen this issue,and as this error:The code generator has deoptimised the styling of "xxx/xxx/templates.js as it exceeds the max of 500KB " when a templates.js document was packaged for webpack.So I found some method to resolve it. I know a truthful thing Because we could use the different program frames. You can find gulpfile.js and search the word "babelify", exmaple :

bundler.transform("babelify", { "compact": false,presets: ["es2015"] });

you can see above setting ,I only added "compact":false, Hope to help you.