Skip to content

Commit ba353a5

Browse files
authored
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.
1 parent 88313ff commit ba353a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rollup/build-all-release-channels.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function updatePlaceholderReactVersionInCompiledArtifacts(
332332

333333
for (const artifactFilename of artifactFilenames) {
334334
const originalText = fs.readFileSync(artifactFilename, 'utf8');
335-
const replacedText = originalText.replace(
335+
const replacedText = originalText.replaceAll(
336336
PLACEHOLDER_REACT_VERSION,
337337
newVersion
338338
);

0 commit comments

Comments
 (0)