Generate Js source map embed mode type
^KT-27301 In Progress
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// DO NOT EDIT MANUALLY!
|
||||
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
|
||||
package org.jetbrains.kotlin.gradle.dsl
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
enum class JsSourceMapEmbedMode (val mode: String) {
|
||||
SOURCE_MAP_SOURCE_CONTENT_INLINING("inlining"),
|
||||
SOURCE_MAP_SOURCE_CONTENT_NEVER("never"),
|
||||
SOURCE_MAP_SOURCE_CONTENT_ALWAYS("always");
|
||||
|
||||
companion object {
|
||||
fun fromMode(mode: String): JsSourceMapEmbedMode =
|
||||
JsSourceMapEmbedMode.values().firstOrNull { it.mode == mode }
|
||||
?: throw IllegalArgumentException("Unknown JS source map embed mode: $mode")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user