-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions
,org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions
public interface KotlinJsCompilerOptions implements KotlinCommonCompilerOptions
-
-
Method Summary
Modifier and Type Method Description abstract Property<Boolean>
getFriendModulesDisabled()
Disable internal declaration export Default value: false abstract Property<JsMainFunctionExecutionMode>
getMain()
Define whether the main
function should be called upon execution Possible values: "call", "noCall" Default value: org.jetbrains.kotlin.gradle.dsl.JsMainFunctionExecutionMode.abstract Property<Boolean>
getMetaInfo()
Generate .meta.js and .kjsm files with metadata. abstract Property<JsModuleKind>
getModuleKind()
Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: org.jetbrains.kotlin.gradle.dsl.JsModuleKind. abstract Property<Boolean>
getNoStdlib()
Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true abstract Property<String>
getOutputFile()
Destination *. abstract Property<Boolean>
getSourceMap()
Generate source map Default value: false abstract Property<JsSourceMapEmbedMode>
getSourceMapEmbedSources()
Embed source files into source map Possible values: "never", "always", "inlining" Default value: null abstract Property<String>
getSourceMapPrefix()
Add the specified prefix to paths in the source map Default value: null abstract Property<String>
getTarget()
Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5" abstract Property<Boolean>
getTypedArrays()
Translate primitive arrays to JS typed arrays Default value: true -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions
getApiVersion, getLanguageVersion, getUseK2
-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerToolOptions
getAllWarningsAsErrors, 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()
Define whether the
main
function should be called upon execution Possible values: "call", "noCall" Default value: org.jetbrains.kotlin.gradle.dsl.JsMainFunctionExecutionMode.CALL
-
getMetaInfo
@Input() abstract Property<Boolean> getMetaInfo()
Generate .meta.js and .kjsm files with metadata. Use to create a library Default value: true
-
getModuleKind
@Input() abstract Property<JsModuleKind> getModuleKind()
Kind of the JS module generated by the compiler Possible values: "plain", "amd", "commonjs", "umd" Default value: org.jetbrains.kotlin.gradle.dsl.JsModuleKind.MODULE_PLAIN
-
getNoStdlib
@Input() abstract Property<Boolean> getNoStdlib()
Don't automatically include the default Kotlin/JS stdlib into compilation dependencies Default value: true
-
getOutputFile
@Internal() abstract Property<String> getOutputFile()
Destination *.js file for the compilation result Default value: null
-
getSourceMap
@Input() abstract Property<Boolean> getSourceMap()
Generate source map Default value: false
-
getSourceMapEmbedSources
@Optional()@Input() abstract Property<JsSourceMapEmbedMode> getSourceMapEmbedSources()
Embed source files into source map Possible values: "never", "always", "inlining" Default value: null
-
getSourceMapPrefix
@Optional()@Input() abstract Property<String> getSourceMapPrefix()
Add the specified prefix to paths in the source map Default value: null
-
getTarget
@Input() abstract Property<String> getTarget()
Generate JS files for specific ECMA version Possible values: "v5" Default value: "v5"
-
getTypedArrays
@Input() abstract Property<Boolean> getTypedArrays()
Translate primitive arrays to JS typed arrays Default value: true
-
-
-
-