File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ libraryDependencies ++= PartialFunction.condOpt(
6767 " org.scalamacros" % " paradise" % " 2.1.1" cross CrossVersion .full
6868 )
6969}
70+
71+ webpack / version := {
72+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
73+ " 4.47.0"
74+ } else {
75+ " 5.98.0"
76+ }
77+ }
Original file line number Diff line number Diff line change @@ -51,3 +51,11 @@ scalacOptions ++= PartialFunction.condOpt(
5151) { case true =>
5252 " -P:scalajs:sjsDefinedByDefault"
5353}
54+
55+ webpack / version := {
56+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
57+ " 4.47.0"
58+ } else {
59+ " 5.98.0"
60+ }
61+ }
Original file line number Diff line number Diff line change @@ -16,3 +16,11 @@ libraryDependencies += {
1616 " org.scala-js" %%% " scalajs-dom" % " 1.2.0"
1717 }
1818}
19+
20+ webpack / version := {
21+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
22+ " 4.47.0"
23+ } else {
24+ " 5.98.0"
25+ }
26+ }
Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ libraryDependencies ++= PartialFunction.condOpt(
6767 " org.scalamacros" % " paradise" % " 2.1.1" cross CrossVersion .full
6868 )
6969}
70+
71+ webpack / version := {
72+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
73+ " 4.47.0"
74+ } else {
75+ " 5.98.0"
76+ }
77+ }
You can’t perform that action at this time.
0 commit comments