Skip to content

Strip console.log and propTypes from production build#316

Open
gmarty wants to merge 1 commit intomozilla-magnet:masterfrom
gmarty:optimise-prod
Open

Strip console.log and propTypes from production build#316
gmarty wants to merge 1 commit intomozilla-magnet:masterfrom
gmarty:optimise-prod

Conversation

@gmarty
Copy link
Copy Markdown
Contributor

@gmarty gmarty commented Nov 7, 2016

This PR applies 2 low-hanging fruits related to production build:

  • Strip calls to console.* as per console.log statements.
  • Strip propTypes from classes. This plugin is widely used in React but I couldn't find any clue on how useful it would be in React Native. My guess is it will remove some code and may possibly have a good impact on JS parsing time. PropTypes are not used in production anyway.

@wilsonpage
Copy link
Copy Markdown
Collaborator

LGTM @gmarty r+

@gmarty gmarty self-assigned this Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants