Skip to content

Commit

Permalink
Rollback "Remove workaround 'force the dependency version of react
Browse files Browse the repository at this point in the history
…equals to react-dom'"
  • Loading branch information
ije committed Jan 15, 2025
1 parent 920495d commit b8ba91c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/build_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,11 @@ func (ctx *BuildContext) resolveExternalModule(specifier string, kind api.Resolv
}
}

// [workaround] force the dependency version of `react` equals to react-dom
if ctx.esm.PkgName == "react-dom" && dep.PkgName == "react" {
dep.PkgVersion = ctx.esm.PkgVersion
}

if withTypeJSON {
resolvedPath = "/" + dep.Specifier()
if subPath == "" || !strings.HasSuffix(subPath, ".json") {
Expand Down

0 comments on commit b8ba91c

Please sign in to comment.