/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.gradle.targets.js.nodejs

import org.jetbrains.kotlin.gradle.InternalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.targets.web.HasPlatformDisambiguator


/**
 * An object that implements the `HasPlatformDisambiguator` interface to provide information specific to the JS platform.
 *
 * This object is used to identify the JS Kotlin platform within the context of platform-specific operations, such as
 * task naming and extension disambiguation.
 */
@InternalKotlinGradlePluginApi
object JsPlatformDisambiguator : HasPlatformDisambiguator {
    override val platformDisambiguator: String?
        get() = null

    internal val jsPlatform: String
        get() = KotlinPlatformType.js.name
}