import org.jetbrains.compose.compose plugins { kotlin("multiplatform") version "1.6.10" id("org.jetbrains.compose") version "1.0.1" } group = "me.user" version = "1.0" repositories { google() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") } kotlin { js(IR) { browser { testTask { testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() } } } binaries.executable() } sourceSets { val jsMain by getting { dependencies { implementation(compose.web.core) implementation(compose.runtime) } } val jsTest by getting { dependencies { implementation(kotlin("test-js")) } } } } afterEvaluate { rootProject.extensions.configure { nodeVersion = "16.0.0" } rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) { rootProject.the().resolution("colors", "1.4.0") } }