From df40dedba3468535a13e67433745197bea18a0f4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 19 Aug 2023 17:49:17 +0200 Subject: [PATCH] gradle: set default JS optimization to BALANCED --- .../src/main/java/org/teavm/gradle/TeaVMExtensionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gradle/src/main/java/org/teavm/gradle/TeaVMExtensionImpl.java b/tools/gradle/src/main/java/org/teavm/gradle/TeaVMExtensionImpl.java index 208d2c32e..f877352cc 100644 --- a/tools/gradle/src/main/java/org/teavm/gradle/TeaVMExtensionImpl.java +++ b/tools/gradle/src/main/java/org/teavm/gradle/TeaVMExtensionImpl.java @@ -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() {