KT-16762 Maven: JS compiler option main is missing
This commit is contained in:
@@ -129,6 +129,7 @@ class KotlinMavenImporter : MavenImporter(KOTLIN_PLUGIN_GROUP_ID, KOTLIN_PLUGIN_
|
||||
arguments.outputFile = configuration.getChild("outputFile")?.text
|
||||
arguments.metaInfo = configuration.getChild("metaInfo")?.text?.trim()?.toBoolean() ?: false
|
||||
arguments.moduleKind = configuration.getChild("moduleKind")?.text
|
||||
arguments.main = configuration.getChild("main")?.text
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -69,6 +69,12 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
|
||||
@Parameter(defaultValue = "false")
|
||||
private boolean sourceMap;
|
||||
|
||||
/**
|
||||
* Main invocation behaviour. Possible values are <b>CALL</b> and <b>NO_CALL</b>.
|
||||
*/
|
||||
@Parameter
|
||||
private String main;
|
||||
|
||||
/**
|
||||
* <p>Specifies which JS module system to generate compatible sources for. Options are:</p>
|
||||
* <ul>
|
||||
@@ -90,6 +96,7 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
|
||||
arguments.noStdlib = true;
|
||||
arguments.metaInfo = metaInfo;
|
||||
arguments.moduleKind = moduleKind;
|
||||
arguments.main = main;
|
||||
|
||||
List<String> libraries = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user