gradle: set default JS optimization to BALANCED

This commit is contained in:
Alexey Andreev 2023-08-19 17:49:17 +02:00
parent e9d206eed0
commit df40dedba3

View File

@ -66,7 +66,7 @@ class TeaVMExtensionImpl extends TeaVMBaseExtensionImpl implements TeaVMExtensio
js.getTargetFileName().convention(project.provider(() -> project.getName() + ".js"));
js.getAddedToWebApp().convention(property("js.addedToWebApp").map(Boolean::parseBoolean).orElse(false));
js.getOptimization().convention(property("js.optimization").map(OptimizationLevel::valueOf)
.orElse(OptimizationLevel.AGGRESSIVE));
.orElse(OptimizationLevel.BALANCED));
}
private void setupWasmDefaults() {