Interface KotlinJsCompilerOptions
-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions,org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions
public interface KotlinJsCompilerOptions implements KotlinCommonCompilerOptions
Compiler options for Kotlin/JS.
-
-
Method Summary
Modifier and Type Method Description abstract Property<Boolean>getFriendModulesDisabled()Disable internal declaration export. abstract Property<JsMainFunctionExecutionMode>getMain()Specify whether the 'main' function should be called upon execution. abstract Property<Boolean>getMetaInfo()This option does nothing and is left for compatibility with the legacy backend. abstract Property<JsModuleKind>getModuleKind()The kind of JS module generated by the compiler. abstract Property<String>getModuleName()Base name of generated files. abstract Property<Boolean>getNoStdlib()This option does nothing and is left for compatibility with the legacy backend. abstract Property<Boolean>getSourceMap()Generate a source map. abstract Property<JsSourceMapEmbedMode>getSourceMapEmbedSources()Embed source files into the source map. abstract Property<JsSourceMapNamesPolicy>getSourceMapNamesPolicy()Mode for mapping generated names to original names. abstract Property<String>getSourceMapPrefix()Add the specified prefix to the paths in the source map. abstract Property<String>getTarget()Generate JS files for the specified ECMA version. abstract Property<Boolean>getTypedArrays()This option does nothing and is left for compatibility with the legacy backend. abstract Property<Boolean>getUseEsClasses()Let generated JavaScript code use ES2015 classes. -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions
getApiVersion, getLanguageVersion, getOptIn, getProgressiveMode, getUseK2 -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions
getAllWarningsAsErrors, getExtraWarnings, getFreeCompilerArgs, getSuppressWarnings, getVerbose -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getFriendModulesDisabled
@Input() abstract Property<Boolean> getFriendModulesDisabled()
Disable internal declaration export.
Default value: false
-
getMain
@Input() abstract Property<JsMainFunctionExecutionMode> getMain()
Specify whether the 'main' function should be called upon execution.
Possible values: "call", "noCall"
Default value: JsMainFunctionExecutionMode.CALL
-
getMetaInfo
@Input() abstract Property<Boolean> getMetaInfo()
This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in Kotlin 2.2.
Default value: false
-
getModuleKind
@Optional()@Input() abstract Property<JsModuleKind> getModuleKind()
The kind of JS module generated by the compiler. ES modules are enabled by default in case of ES2015 target usage
Possible values: "plain", "amd", "commonjs", "umd"
Default value: null
-
getModuleName
@Optional()@Input() abstract Property<String> getModuleName()
Base name of generated files.
Default value: null
-
getNoStdlib
@Input() abstract Property<Boolean> getNoStdlib()
This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in Kotlin 2.2.
Default value: false
-
getSourceMap
@Input() abstract Property<Boolean> getSourceMap()
Generate a source map.
Default value: false
-
getSourceMapEmbedSources
@Optional()@Input() abstract Property<JsSourceMapEmbedMode> getSourceMapEmbedSources()
Embed source files into the source map.
Possible values: "never", "always", "inlining"
Default value: null
-
getSourceMapNamesPolicy
@Optional()@Input() abstract Property<JsSourceMapNamesPolicy> getSourceMapNamesPolicy()
Mode for mapping generated names to original names.
Possible values: "no", "simple-names", "fully-qualified-names"
Default value: null
-
getSourceMapPrefix
@Optional()@Input() abstract Property<String> getSourceMapPrefix()
Add the specified prefix to the paths in the source map.
Default value: null
-
getTarget
@Input() abstract Property<String> getTarget()
Generate JS files for the specified ECMA version.
Possible values: "es5", "es2015"
Default value: "es5"
-
getTypedArrays
@Input() abstract Property<Boolean> getTypedArrays()
This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in a future release.
Default value: false
-
getUseEsClasses
@Optional()@Input() abstract Property<Boolean> getUseEsClasses()
Let generated JavaScript code use ES2015 classes. Enabled by default in case of ES2015 target usage
Default value: null
-
-
-
-