KotlinJsOptions

Deprecated

The kotlinOptions types are deprecated, please migrate to the compilerOptions types. More details are here: https://kotl.in/u1r8ln

Compiler options for Kotlin/JS.

Properties

Link copied to clipboard

Report an error if there are any warnings.

Link copied to clipboard
open var apiVersion: String?

Allow using declarations from only the specified version of bundled libraries.

Link copied to clipboard

A list of additional compiler arguments

Link copied to clipboard

Disable internal declaration export.

Link copied to clipboard

Provide source compatibility with the specified version of Kotlin.

Link copied to clipboard
open var main: String

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

Link copied to clipboard
open var metaInfo: Boolean

This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in Kotlin 2.2.

Link copied to clipboard
open var moduleKind: String?

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
open var moduleName: String?

Base name of generated files.

Link copied to clipboard
open var noStdlib: Boolean

This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in Kotlin 2.2.

Link copied to clipboard
open var sourceMap: Boolean

Generate a source map.

Link copied to clipboard

Embed source files into the source map.

Link copied to clipboard

Mode for mapping generated names to original names.

Link copied to clipboard

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

Link copied to clipboard

Don't generate any warnings.

Link copied to clipboard
open var target: String

Generate JS files for the specified ECMA version.

Link copied to clipboard

This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in a future release.

Link copied to clipboard

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

Link copied to clipboard
open var useK2: Boolean

Compile using the experimental K2 compiler pipeline. No compatibility guarantees are provided yet.

Link copied to clipboard
open var verbose: Boolean

Enable verbose logging output.