File tree Expand file tree Collapse file tree 5 files changed +16
-3107
lines changed Expand file tree Collapse file tree 5 files changed +16
-3107
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ To build and run the application:
50501 . In IntelliJ IDEA, open the repository.
51512 . Run the application by typing the following Gradle command in the terminal:
5252
53- ` ./gradlew wasmJsBrowserRun -t `
53+ ` ./gradlew wasmJsBrowserProductionRun -t `
5454 <br >  ; <br >
5555
5656Once the application starts, open the following URL in your browser:
Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
1+ @file:OptIn(ExperimentalWasmDsl ::class )
2+
3+ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
24
35plugins {
46 alias(libs.plugins.kotlinMultiplatform)
@@ -14,29 +16,15 @@ repositories {
1416kotlin {
1517 wasmJs {
1618 binaries.executable()
17- browser {
18- commonWebpackConfig {
19- devServer = (devServer ? : KotlinWebpackConfig .DevServer ()).apply {
20- static = (static ? : mutableListOf ()).apply {
21- add(project.rootDir.path)
22- }
23- }
24- }
25- }
19+ browser()
2620 }
2721
2822 sourceSets {
29- val commonMain by getting
30- val commonTest by getting {
31- dependencies {
32- implementation(libs.kotlin.test)
33- }
23+ commonTest.dependencies {
24+ implementation(libs.kotlin.test)
3425 }
35- val wasmJsMain by getting {
36- dependencies {
37- implementation(libs.kotlinx.browser)
38- }
26+ wasmJsMain.dependencies {
27+ implementation(libs.kotlinx.browser)
3928 }
40- val wasmJsTest by getting
4129 }
4230}
Original file line number Diff line number Diff line change 11[versions ]
2- kotlin = " 2.0 .10"
2+ kotlin = " 2.2 .10"
33kotlinx-browser = " 0.3"
44
55[libraries ]
You can’t perform that action at this time.
0 commit comments