diff --git a/buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/js/Esbuild.kt b/buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/js/Esbuild.kt index ee8e4b13af..6ed37745f3 100644 --- a/buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/js/Esbuild.kt +++ b/buildSrc/src/main/kotlin/korlibs/korge/gradle/targets/js/Esbuild.kt @@ -113,8 +113,10 @@ fun Project.configureEsbuild() { addAll(esbuildCmd) //add("--watch",) add("--bundle") - add("--minify") - add("--sourcemap=external") + if (!debug) { + add("--minify") + add("--sourcemap=external") + } add(jsPath) add("--outfile=$output") // @TODO: Close this command on CTRL+C