Skip to content

Commit

Permalink
fix fast-text-encoding dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiaggio committed Jan 29, 2024
1 parent 48f3809 commit daeca05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/changelog/2.2.0-betas.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@

jsDependencies ++= Seq(
// Polyfill required for React 18.2.0
"org.webjars.npm" % "fast-text-encoding" % "1.0.3" / "text.js" minified "text.min.js"
"org.webjars.npm" % "fast-text-encoding" % "1.0.6" / "text.min.js" minified "text.min.js"

"org.webjars.npm" % "react" % "18.2.0"
/ "umd/react.development.js"
minified "umd/react.production.min.js"
dependsOn "text.js" // <-- Load the fast-text-encoding polyfill before loading React itself
dependsOn "text.min.js" // <-- Load the fast-text-encoding polyfill before loading React itself
commonJSName "React",

"org.webjars.npm" % "react-dom" % "18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion library/project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ object Dependencies {
val reactDoutestUtils = ReactArtifact("react-dom-test-utils")
}

def fastTextEncodingJs = "text.js"
def fastTextEncodingJs = "text.min.js" // 1.0.6 webjar only contains minified version

def globalDependencyOverrides = Def.setting(Seq(
Dep.scalaJsDom.value,
Expand Down

0 comments on commit daeca05

Please sign in to comment.