Browse Source

ImageViewer: workaround k/wasm configuration cache issue KT-68614 (#4891)

Added a workaround in ImageViewer for K/Wasm configuration cache issue
https://youtrack.jetbrains.com/issue/KT-68614/Wasm.-KotlinWebpack-cannot-serialize-Gradle-script-object-references
pull/4893/head
Oleksandr Karpovich 7 months ago committed by GitHub
parent
commit
6604addbac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 21
      examples/imageviewer/webApp/build.gradle.kts

21
examples/imageviewer/webApp/build.gradle.kts

@ -26,16 +26,17 @@ kotlin {
wasmJs { wasmJs {
moduleName = "imageviewer" moduleName = "imageviewer"
browser { browser {
commonWebpackConfig { // TODO: uncomment when https://youtrack.jetbrains.com/issue/KT-68614 is fixed (it doesn't work with configuration cache)
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply { // commonWebpackConfig {
static = (static ?: mutableListOf()).apply { // devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
// Serve sources to debug inside browser // static = (static ?: mutableListOf()).apply {
add(rootDirPath) // // Serve sources to debug inside browser
add(rootDirPath + "/shared/") // add(rootDirPath)
add(rootDirPath + "/webApp/") // add(rootDirPath + "/shared/")
} // add(rootDirPath + "/webApp/")
} // }
} // }
// }
} }
binaries.executable() binaries.executable()
} }

Loading…
Cancel
Save