diff --git a/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts index 17fe5c76..5e207f0c 100644 --- a/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts +++ b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts @@ -7,7 +7,14 @@ plugins { } kotlin { - applyDefaultHierarchyTemplate() + applyDefaultHierarchyTemplate { + common { + group("commonWeb") { + withJs() + withWasm() + } + } + } jvm { compilations.all { @@ -21,8 +28,11 @@ kotlin { iosSimulatorArm64() iosX64() + js(IR) { + browser() + } @OptIn(ExperimentalWasmDsl::class) wasmJs { - nodejs() + browser() } } \ No newline at end of file diff --git a/elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt b/elmslie-core/src/commonWebMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt similarity index 100% rename from elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt rename to elmslie-core/src/commonWebMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt diff --git a/elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt b/elmslie-core/src/commonWebMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt similarity index 100% rename from elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt rename to elmslie-core/src/commonWebMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt