diff --git a/examples/falling-balls-web/build.gradle.kts b/examples/falling-balls-web/build.gradle.kts index 9f8930a071..163a0e353e 100644 --- a/examples/falling-balls-web/build.gradle.kts +++ b/examples/falling-balls-web/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension import org.jetbrains.compose.compose import org.jetbrains.compose.desktop.application.dsl.TargetFormat @@ -73,3 +74,10 @@ compose.desktop { } } } + +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + extensions.configure { + versions.webpackDevServer.version = "4.0.0" + } +} diff --git a/examples/todoapp/web/build.gradle.kts b/examples/todoapp/web/build.gradle.kts index 8831755cde..53ee561f64 100755 --- a/examples/todoapp/web/build.gradle.kts +++ b/examples/todoapp/web/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension import org.jetbrains.compose.compose plugins { @@ -32,3 +33,10 @@ kotlin { } } } + +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + extensions.configure { + versions.webpackDevServer.version = "4.0.0" + } +} diff --git a/examples/web-compose-bird/build.gradle.kts b/examples/web-compose-bird/build.gradle.kts index fc1767b3fa..212f7c49f0 100644 --- a/examples/web-compose-bird/build.gradle.kts +++ b/examples/web-compose-bird/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension + plugins { kotlin("multiplatform") version "1.5.21" id("org.jetbrains.compose") version "1.0.0-alpha1" @@ -26,3 +28,10 @@ kotlin { } } } + +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + extensions.configure { + versions.webpackDevServer.version = "4.0.0" + } +} diff --git a/examples/web-landing/build.gradle.kts b/examples/web-landing/build.gradle.kts index 89a52beef0..d8721ea719 100644 --- a/examples/web-landing/build.gradle.kts +++ b/examples/web-landing/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension + plugins { kotlin("multiplatform") version "1.5.21" id("org.jetbrains.compose") version "1.0.0-alpha1" @@ -26,3 +28,9 @@ kotlin { } } +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + extensions.configure { + versions.webpackDevServer.version = "4.0.0" + } +} diff --git a/examples/web-with-react/build.gradle.kts b/examples/web-with-react/build.gradle.kts index ee05ce58ab..616e9459cc 100644 --- a/examples/web-with-react/build.gradle.kts +++ b/examples/web-with-react/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension plugins { kotlin("multiplatform") version "1.5.21" id("org.jetbrains.compose") version "1.0.0-alpha1" @@ -30,3 +31,10 @@ kotlin { } } } + +// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 +afterEvaluate { + extensions.configure { + versions.webpackDevServer.version = "4.0.0" + } +}