Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0] Add more core modules to commons bundle + strip prop-types #1003

Merged
merged 2 commits into from
May 19, 2017

Conversation

KyleAMathews
Copy link
Contributor

No description provided.

@gatsbybot
Copy link
Collaborator

gatsbybot commented May 19, 2017

Deploy preview ready!

Built with commit 72da219

https://deploy-preview-1003--using-drupal.netlify.com

@@ -155,6 +155,11 @@ module.exports = async function babelConfig(program, stage) {
babelrc.plugins.unshift(`react-hot-loader/babel`)
}

if (stage !== `develop`) {
// Remove prop-types in production.
babelrc.plugins.unshift(`transform-react-remove-prop-types`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this affect files parsed in source plugins? React-bootstrap uses/depends on some runtime propType logic and that would break the doc site i'm building with react-docgen :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh! Ummm yes it would :-)

Hmmm ok I naively thought this would be a safe global optimization but clearly not. Thanks for heads up :-) I'll remove it.

@KyleAMathews
Copy link
Contributor Author

KyleAMathews commented May 19, 2017

Deploy preview ready!

Built with commit 3db8b54

https://deploy-preview-1003--gatsbygram.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented May 19, 2017

Deploy preview ready!

Built with commit 72da219

https://deploy-preview-1003--gatsbyjs.netlify.com

@KyleAMathews KyleAMathews merged commit 33c151e into 1.0 May 19, 2017
@KyleAMathews KyleAMathews deleted the tweak-bundling branch July 6, 2017 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants