File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,13 @@ compose.experimental {
100100
101101// include JS artifacts in any JAR we generate
102102tasks.named<Jar >(" jvmJar" ).configure {
103+ val taskPrefix = if (project.properties.get(" app.run.wasm" ) == " true" ) " wasmJs" else " js"
103104 val taskName = if (project.hasProperty(" isProduction" )
104105 || project.gradle.startParameter.taskNames.contains(" installDist" )
105106 ) {
106- " wasmJsBrowserProductionWebpack "
107+ " ${taskPrefix} BrowserProductionWebpack "
107108 } else {
108- " wasmJsBrowserDevelopmentWebpack "
109+ " ${taskPrefix} BrowserDevelopmentWebpack "
109110 }
110111 val webpackTask = tasks.named<KotlinWebpack >(taskName)
111112 dependsOn(webpackTask)
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ kotlin.incremental.js.ir=true
66kotlin.incremental.js.klib =true
77org.jetbrains.compose.experimental.wasm.enabled =true
88kotlin.daemon.jvmargs =-Xmx4G
9+ app.run.wasm =false
You can’t perform that action at this time.
0 commit comments