mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user