KotlinJsCompilerOptions

Compiler options for Kotlin/JS.

Properties

Link copied to clipboard
@get:Input
abstract val friendModulesDisabled: Property<Boolean>

Disable internal declaration export.

Link copied to clipboard
@get:Input
abstract val main: Property<JsMainFunctionExecutionMode>

Specify whether the 'main' function should be called upon execution.

Link copied to clipboard
@get:Optional
@get:Input
abstract val moduleKind: Property<JsModuleKind>

The kind of JS module generated by the compiler. ES modules are enabled by default in case of ES2015 target usage

Link copied to clipboard
@get:Optional
@get:Input
abstract val moduleName: Property<String>

Base name of generated files.

Link copied to clipboard
@get:Input
abstract val sourceMap: Property<Boolean>

Generate a source map.

Link copied to clipboard
@get:Optional
@get:Input
abstract val sourceMapEmbedSources: Property<JsSourceMapEmbedMode>

Embed source files into the source map.

Link copied to clipboard
@get:Optional
@get:Input
abstract val sourceMapNamesPolicy: Property<JsSourceMapNamesPolicy>

Mode for mapping generated names to original names.

Link copied to clipboard
@get:Optional
@get:Input
abstract val sourceMapPrefix: Property<String>

Add the specified prefix to the paths in the source map.

Link copied to clipboard
@get:Input
abstract val target: Property<String>

Generate JS files for the specified ECMA version.

Link copied to clipboard
@get:Optional
@get:Input
abstract val useEsClasses: Property<Boolean>

Let generated JavaScript code use ES2015 classes. Enabled by default in case of ES2015 target usage