From ba353a50a65b9dc433b3fbcd2efaa8b95b9da460 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Mon, 6 Mar 2023 15:38:43 -0500 Subject: [PATCH] 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. --- scripts/rollup/build-all-release-channels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rollup/build-all-release-channels.js b/scripts/rollup/build-all-release-channels.js index 0584803468891..992caf742ddd0 100644 --- a/scripts/rollup/build-all-release-channels.js +++ b/scripts/rollup/build-all-release-channels.js @@ -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 );