Skip to content

Commit

Permalink
fix the PropTypes being stripped out of the lib output
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed Oct 21, 2018
1 parent 6dc5bef commit e2b38b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const prod = process.env.NODE_ENV === 'production';

module.exports = {
plugins: ['emotion', prod && 'transform-react-remove-prop-types'].filter(
Boolean
),
plugins: ['emotion'],
presets: [
[
'env',
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
loader: 'babel-loader',
options: {
babelrc: false,
plugins: ['emotion'],
plugins: ['emotion', 'transform-react-remove-prop-types'],
presets: [
[
'env',
Expand Down

0 comments on commit e2b38b6

Please sign in to comment.