mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-21 00:21:32 +00:00
Fix import of js MPP source sets in both mode
#KT-38706 Fixed
This commit is contained in:
@@ -31,6 +31,8 @@ open class KotlinJsTargetPreset(
|
||||
override val platformType: KotlinPlatformType
|
||||
get() = KotlinPlatformType.js
|
||||
|
||||
override fun useDisambiguitionClassifierAsSourcesetNamePreffix() = false
|
||||
|
||||
override fun instantiateTarget(name: String): KotlinJsTarget {
|
||||
return project.objects.newInstance(
|
||||
KotlinJsTarget::class.java,
|
||||
@@ -95,8 +97,6 @@ class KotlinJsSingleTargetPreset(
|
||||
override val isMpp: Boolean
|
||||
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:
|
||||
override fun provideTargetDisambiguationClassifier(target: KotlinOnlyTarget<KotlinJsCompilation>): String? =
|
||||
irPreset?.let {
|
||||
|
||||
Reference in New Issue
Block a user