[Plugin JS Plain Objects] Remove wasm support because there is no possibility to eliminate inlined js object properties at this moment
This commit is contained in:
+1
-3
@@ -26,7 +26,7 @@ class JsPlainObjectsKotlinGradleSubplugin : KotlinCompilerPluginSupportPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean =
|
override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean =
|
||||||
kotlinCompilation.target.isJs() || kotlinCompilation.target.isWasm()
|
kotlinCompilation.target.isJs()
|
||||||
|
|
||||||
override fun applyToCompilation(
|
override fun applyToCompilation(
|
||||||
kotlinCompilation: KotlinCompilation<*>
|
kotlinCompilation: KotlinCompilation<*>
|
||||||
@@ -43,6 +43,4 @@ class JsPlainObjectsKotlinGradleSubplugin : KotlinCompilerPluginSupportPlugin {
|
|||||||
override fun getCompilerPluginId() = "org.jetbrains.kotlinx.js-plain-objects"
|
override fun getCompilerPluginId() = "org.jetbrains.kotlinx.js-plain-objects"
|
||||||
|
|
||||||
private fun KotlinTarget.isJs() = platformType == KotlinPlatformType.js
|
private fun KotlinTarget.isJs() = platformType == KotlinPlatformType.js
|
||||||
|
|
||||||
private fun KotlinTarget.isWasm() = platformType == KotlinPlatformType.wasm
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user