Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Babel plugin to remove React
propTypes
for production builds
Configured the `babel-plugin-transform-react-remove-prop-types` Babel plugin (1) to remove all React `propTypes` when building a bundle in production mode. It is implemented through Gatsby's Node API (1) using the provided `setBabelOptions` action (3). References: (1) https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types (2) https://www.gatsbyjs.org/docs/node-apis (3) https://www.gatsbyjs.org/docs/actions GH-29
- Loading branch information