targets

fun targets(vararg names: String)

Adds one or more browser target names to targets.

This adds, never replaces, so repeated calls pile up.

targets("js")

abstract val targets: ListProperty<String>

Exact Kotlin/JS target names that run in a browser.

Default: empty, and at least one name is required while enabled is true. Plain js { browser() } is "js", and js("web") is "web".

KiteConfig does not guess whether a Kotlin/JS target is a browser target or a Node.js target, so nothing is generated for a target you leave out. Every name must match a declared Kotlin/JS target.