Fix import of js MPP source sets in both mode
#KT-38706 Fixed
This commit is contained in:
+2
-2
@@ -31,6 +31,8 @@ open class KotlinJsTargetPreset(
|
|||||||
override val platformType: KotlinPlatformType
|
override val platformType: KotlinPlatformType
|
||||||
get() = KotlinPlatformType.js
|
get() = KotlinPlatformType.js
|
||||||
|
|
||||||
|
override fun useDisambiguitionClassifierAsSourcesetNamePreffix() = false
|
||||||
|
|
||||||
override fun instantiateTarget(name: String): KotlinJsTarget {
|
override fun instantiateTarget(name: String): KotlinJsTarget {
|
||||||
return project.objects.newInstance(
|
return project.objects.newInstance(
|
||||||
KotlinJsTarget::class.java,
|
KotlinJsTarget::class.java,
|
||||||
@@ -95,8 +97,6 @@ class KotlinJsSingleTargetPreset(
|
|||||||
override val isMpp: Boolean
|
override val isMpp: Boolean
|
||||||
get() = false
|
get() = false
|
||||||
|
|
||||||
override fun useDisambiguitionClassifierAsSourcesetNamePreffix() = false
|
|
||||||
|
|
||||||
// In a Kotlin/JS single-platform project, we don't need any disambiguation suffixes or prefixes in the names:
|
// In a Kotlin/JS single-platform project, we don't need any disambiguation suffixes or prefixes in the names:
|
||||||
override fun provideTargetDisambiguationClassifier(target: KotlinOnlyTarget<KotlinJsCompilation>): String? =
|
override fun provideTargetDisambiguationClassifier(target: KotlinOnlyTarget<KotlinJsCompilation>): String? =
|
||||||
irPreset?.let {
|
irPreset?.let {
|
||||||
|
|||||||
Reference in New Issue
Block a user