mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Gradle: in no optimization mode, generate JS, which is friendly to Chrome debugger
This commit is contained in:
parent
ef2e887d06
commit
e1827880c9
|
@ -18,6 +18,7 @@ package org.teavm.gradle.tasks;
|
|||
import org.gradle.api.provider.Property;
|
||||
import org.gradle.api.tasks.Input;
|
||||
import org.gradle.api.tasks.Optional;
|
||||
import org.teavm.gradle.api.OptimizationLevel;
|
||||
import org.teavm.tooling.TeaVMTargetType;
|
||||
import org.teavm.tooling.builder.BuildStrategy;
|
||||
|
||||
|
@ -52,5 +53,8 @@ public abstract class GenerateJavaScriptTask extends TeaVMTask {
|
|||
builder.setStrict(getStrict().get());
|
||||
builder.setSourceMapsFileGenerated(getSourceMap().get());
|
||||
builder.setEntryPointName(getEntryPointName().get());
|
||||
if (getOptimization().get() == OptimizationLevel.NONE) {
|
||||
builder.setMaxTopLevelNames(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user