plugins { kotlin("js") version "1.6.0" kotlin("plugin.serialization") version "1.6.0" id("com.github.node-gradle.node") version "3.1.1" } repositories { mavenCentral() } kotlin { sourceSets.all { languageSettings.optIn("kotlin.ExperimentalStdlibApi") languageSettings.optIn("kotlin.RequiresOptIn") } js(IR) { browser { commonWebpackConfig { sourceMaps = true cssSupport.enabled = true } } binaries.executable() } } val processResources by tasks.getting(Copy::class) dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC") implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:0.0.1-pre.256-kotlin-1.5.31")) implementation("org.jetbrains.kotlin-wrappers:kotlin-styled") implementation(npm("@fontsource/comic-mono", "^4.5.0")) implementation(npm("prop-types", "^15.6.2")) } afterEvaluate { rootProject.extensions.configure { versions.webpackCli.version="4.10.0" } } group = "moe.nea" version = "1.0-SNAPSHOT"