Skip to content

Commit db417f4

Browse files
authored
[web]: Add debugging support to webpack dev server configuration in demo (#2208)
Configure Wasm debug for the demo ## Release Notes N/A
1 parent eb29bb1 commit db417f4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

compose/mpp/demo/build.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,18 @@ kotlin {
6969
browser {
7070
commonWebpackConfig {
7171
outputFileName = "demo.js"
72-
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).copy(
72+
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
7373
open = mapOf(
7474
"app" to mapOf(
7575
"name" to "google-chrome",
7676
)
77-
),
78-
)
77+
)
78+
static = (static ?: mutableListOf()).apply {
79+
// Serve sources to debug inside browser
80+
add(project.rootDir.path)
81+
add(project.projectDir.path)
82+
}
83+
}
7984
}
8085
}
8186
binaries.executable()

0 commit comments

Comments
 (0)