Build: make version in build artifacts match (#26329)

Some build artifacts contain multiple version strings. It seems like an
oversight to me that this `.replace` call just replaces the one that
happens to be first.
This commit is contained in:
Jan Kassens 2023-03-06 15:38:43 -05:00 committed by GitHub
parent 88313ffd57
commit ba353a50a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ function updatePlaceholderReactVersionInCompiledArtifacts(
for (const artifactFilename of artifactFilenames) {
const originalText = fs.readFileSync(artifactFilename, 'utf8');
const replacedText = originalText.replace(
const replacedText = originalText.replaceAll(
PLACEHOLDER_REACT_VERSION,
newVersion
);