Browse Source

Force webpack@4.0.0 for web examples

This is a temporary fix for https://github.com/JetBrains/compose-jb/issues/1100
pull/1151/head
Shagen Ogandzhanian 3 years ago
parent
commit
27fda5b777
  1. 8
      examples/falling-balls-web/build.gradle.kts
  2. 8
      examples/todoapp/web/build.gradle.kts
  3. 9
      examples/web-compose-bird/build.gradle.kts
  4. 8
      examples/web-landing/build.gradle.kts
  5. 8
      examples/web-with-react/build.gradle.kts

8
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.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat 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<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
}
}

8
examples/todoapp/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.compose
plugins { 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<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
}
}

9
examples/web-compose-bird/build.gradle.kts

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
plugins { plugins {
kotlin("multiplatform") version "1.5.21" kotlin("multiplatform") version "1.5.21"
id("org.jetbrains.compose") version "1.0.0-alpha1" 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<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
}
}

8
examples/web-landing/build.gradle.kts

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
plugins { plugins {
kotlin("multiplatform") version "1.5.21" kotlin("multiplatform") version "1.5.21"
id("org.jetbrains.compose") version "1.0.0-alpha1" 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<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
}
}

8
examples/web-with-react/build.gradle.kts

@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
plugins { plugins {
kotlin("multiplatform") version "1.5.21" kotlin("multiplatform") version "1.5.21"
id("org.jetbrains.compose") version "1.0.0-alpha1" 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<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
}
}

Loading…
Cancel
Save