// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "Deprecation_Error", "DuplicatedCode")

package org.jetbrains.kotlin.gradle.dsl

enum class JsModuleKind(val kind: String) {
    MODULE_AMD("amd"),
    MODULE_PLAIN("plain"),
    MODULE_ES("es"),
    MODULE_COMMONJS("commonjs"),
    MODULE_UMD("umd"),
    ;

    companion object {
        @JvmStatic
        fun fromKind(kind: String): JsModuleKind =
            JsModuleKind.values().firstOrNull { it.kind == kind }
                ?: throw IllegalArgumentException(
                    "Unknown JS module kind: $kind,\navailable kinds: ${JsModuleKind.values().joinToString { it.kind }}\n" +
                            "Prefer configuring 'moduleKind' value via 'compilerOptions' DSL: https://kotl.in/compiler-options-dsl"
                )
    }
}
