Skip to content

Scripts: Code refractor For function parseRequestedNames#23135

Closed
Biki-das wants to merge 1 commit into
facebook:mainfrom
Biki-das:code-patch
Closed

Scripts: Code refractor For function parseRequestedNames#23135
Biki-das wants to merge 1 commit into
facebook:mainfrom
Biki-das:code-patch

Conversation

@Biki-das

Copy link
Copy Markdown
Contributor

This change is just a little code refractor I tried , this surely makes the code more easy to read , and we have few variables than earlier

…any fucntionality or fix any bugs, I tried to do a refractor through removing the for loop, Using built-in functions of Js along with very few variales declared, this makes the code more readable
@sizebot

sizebot commented Jan 18, 2022

Copy link
Copy Markdown

Comparing: 3dc41d8...0a65eb2

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 129.52 kB 129.52 kB = 41.53 kB 41.53 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 134.65 kB 134.65 kB = 43.01 kB 43.01 kB
facebook-www/ReactDOM-prod.classic.js = 427.76 kB 427.76 kB = 78.53 kB 78.53 kB
facebook-www/ReactDOM-prod.modern.js = 417.45 kB 417.45 kB = 77.06 kB 77.06 kB
facebook-www/ReactDOMForked-prod.classic.js = 427.76 kB 427.76 kB = 78.53 kB 78.53 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 0a65eb2

Comment thread scripts/rollup/build.js
return name.toUpperCase();
} else if (toCase === 'lowercase') {
name = name.toLowerCase();
return name.toLowerCase();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need else after return

Comment thread scripts/rollup/build.js
}
return result;
})
.filter(name => !!name);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this filter should happen before the map

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions Bot added the Resolution: Stale Automatically closed due to inactivity label Apr 10, 2024
@github-actions

Copy link
Copy Markdown

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@github-actions github-actions Bot closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Resolution: Stale Automatically closed due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants