Open
Description
When trying to minify a js that is over 100KB there is a warning from babel:
Warning [BABEL] Note: The code generator has deoptimised the styling of "path/to/file" as it exceeds the max of "100KB".
Even though its a warning, it prevents from starting an application.
To Reproduce
Steps to reproduce the behavior:
- Create a js file that is over 100KB
- Minify
- Add to minify on build
- See error
Expected behavior
There should be babel option in config that allows to change compact property to false
Additional context
It is an easy fix (Done it myself locally).
Steps to fix:
in BabelOptions.cs add:
[JsonProperty("compact")] public bool Compact { get; set; }
in BabelCompiler.cs ConstructArguments method add:
if (!options.Compact) arguments += " --compact false";