File tree 4 files changed +32
-0
lines changed
4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ libraryDependencies ++= PartialFunction.condOpt(
67
67
" org.scalamacros" % " paradise" % " 2.1.1" cross CrossVersion .full
68
68
)
69
69
}
70
+
71
+ webpack / version := {
72
+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
73
+ " 3.12.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(
51
51
) { case true =>
52
52
" -P:scalajs:sjsDefinedByDefault"
53
53
}
54
+
55
+ webpack / version := {
56
+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
57
+ " 3.12.0"
58
+ } else {
59
+ " 5.98.0"
60
+ }
61
+ }
Original file line number Diff line number Diff line change @@ -16,3 +16,11 @@ libraryDependencies += {
16
16
" org.scala-js" %%% " scalajs-dom" % " 1.2.0"
17
17
}
18
18
}
19
+
20
+ webpack / version := {
21
+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
22
+ " 3.12.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(
67
67
" org.scalamacros" % " paradise" % " 2.1.1" cross CrossVersion .full
68
68
)
69
69
}
70
+
71
+ webpack / version := {
72
+ if (VersionNumber (scalaJSVersion).matchesSemVer(SemanticSelector (" <1" ))) {
73
+ " 3.12.0"
74
+ } else {
75
+ " 5.98.0"
76
+ }
77
+ }
You can’t perform that action at this time.
0 commit comments