Update TeaVM for ESM support
We still need our fork (file attributes, some Math/Int/Long methods), but this simplifies things a wee bit.
This commit is contained in:
parent
7ee821e9c9
commit
6fb291112d
|
@ -72,7 +72,7 @@ mixinGradle = "0.7.38"
|
|||
nullAway = "0.9.9"
|
||||
spotless = "6.23.3"
|
||||
taskTree = "2.1.1"
|
||||
teavm = "0.10.0-SQUID.2"
|
||||
teavm = "0.10.0-SQUID.3"
|
||||
vanillaExtract = "0.1.1"
|
||||
versionCatalogUpdate = "0.8.1"
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
package cc.tweaked.web.builder;
|
||||
|
||||
import org.teavm.backend.javascript.JSModuleType;
|
||||
import org.teavm.common.JsonUtil;
|
||||
import org.teavm.tooling.ConsoleTeaVMToolLog;
|
||||
import org.teavm.tooling.TeaVMProblemRenderer;
|
||||
|
@ -71,6 +72,7 @@ private static void buildClasses(List<Path> input, List<Path> classpath, Path ou
|
|||
// Then finally start the compiler!
|
||||
var tool = new TeaVMTool();
|
||||
tool.setTargetType(TeaVMTargetType.JAVASCRIPT);
|
||||
tool.setJsModuleType(JSModuleType.ES2015);
|
||||
tool.setTargetDirectory(output.toFile());
|
||||
tool.setClassLoader(remapper);
|
||||
tool.setMainClass("cc.tweaked.web.Main");
|
||||
|
|
Loading…
Reference in New Issue