Add compiler argument
diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2WasmCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2WasmCompilerArguments.kt
index d704c8b..96a4677 100644
--- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2WasmCompilerArguments.kt
+++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2WasmCompilerArguments.kt
@@ -90,6 +90,16 @@
         }
 
     @Argument(
+        value = "-Xwasm-debug-build",
+        description = "Generates devtools custom formatters (https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters) for Kotlin/Wasm values"
+    )
+    var shouldSkipDebugUnfriendlyTransformations = false
+        set(value) {
+            checkFrozen()
+            field = value
+        }
+
+    @Argument(
         value = "-Xwasm-debugger-custom-formatters",
         description = "Generates devtools custom formatters (https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters) for Kotlin/Wasm values"
     )
diff --git a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2WasmCompilerImpl.kt b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2WasmCompilerImpl.kt
index f4d3abc..b1feed2 100644
--- a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2WasmCompilerImpl.kt
+++ b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2WasmCompilerImpl.kt
@@ -65,6 +65,7 @@
         configuration.put(WasmConfigurationKeys.WASM_USE_TRAPS_INSTEAD_OF_EXCEPTIONS, arguments.wasmUseTrapsInsteadOfExceptions)
         configuration.put(WasmConfigurationKeys.WASM_USE_NEW_EXCEPTION_PROPOSAL, arguments.wasmUseNewExceptionProposal)
         configuration.put(WasmConfigurationKeys.WASM_USE_JS_TAG, arguments.wasmUseJsTag ?: arguments.wasmUseNewExceptionProposal)
+        configuration.put(WasmConfigurationKeys.WASM_DEBUG_BUILD, arguments.shouldSkipDebugUnfriendlyTransformations)
         configuration.putIfNotNull(WasmConfigurationKeys.WASM_TARGET, arguments.wasmTarget?.let(WasmTarget::fromName))
 
         val moduleName = arguments.irModuleName ?: outputName