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.
Jan Kassens committed
Mar 6, 2023 at 15:38 UTC
ba353a50a65b9dc433b3fbcd2efaa8b95b9da460
1 file changed
+1
-1
scripts/rollup/build-all-release-channels.js
+1
-1
@@ -332,7 +332,7 @@ function updatePlaceholderReactVersionInCompiledArtifacts(
332
333
for (const artifactFilename of artifactFilenames) {
334
const originalText = fs.readFileSync(artifactFilename, 'utf8');
335
- const replacedText = originalText.replace(
335
+ const replacedText = originalText.replaceAll(
336
PLACEHOLDER_REACT_VERSION,
337
newVersion
338
);