Skip to content

Commit 4b1bbef

Browse files
JSMonkSpace Team
authored and
Space Team
committed
[Plugin JS Plain Objects] Remove wasm support because there is no possibility to eliminate inlined js object properties at this moment
1 parent d937fb4 commit 4b1bbef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/tools/js-plain-objects/src/common/kotlin/org/jetbrains/kotlinx/jso/gradle/JsPlainObjectsKotlinGradleSubplugin.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class JsPlainObjectsKotlinGradleSubplugin : KotlinCompilerPluginSupportPlugin {
2626
}
2727

2828
override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean =
29-
kotlinCompilation.target.isJs() || kotlinCompilation.target.isWasm()
29+
kotlinCompilation.target.isJs()
3030

3131
override fun applyToCompilation(
3232
kotlinCompilation: KotlinCompilation<*>
@@ -43,6 +43,4 @@ class JsPlainObjectsKotlinGradleSubplugin : KotlinCompilerPluginSupportPlugin {
4343
override fun getCompilerPluginId() = "org.jetbrains.kotlinx.js-plain-objects"
4444

4545
private fun KotlinTarget.isJs() = platformType == KotlinPlatformType.js
46-
47-
private fun KotlinTarget.isWasm() = platformType == KotlinPlatformType.wasm
4846
}

0 commit comments

Comments
 (0)