Skip to content

Commit

Permalink
update preset.ts to use isProduction variable (#6234)
Browse files Browse the repository at this point in the history
  • Loading branch information
youbiak authored and timneutkens committed Feb 10, 2019
1 parent bfd2d08 commit 63c25a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/babel/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = (context: any, options: NextBabelPresetOptions = {}): BabelPres
...options['transform-runtime']
}],
[require('styled-jsx/babel'), styledJsxOptions(options['styled-jsx'])],
process.env.NODE_ENV === 'production' && require('babel-plugin-transform-react-remove-prop-types')
isProduction && require('babel-plugin-transform-react-remove-prop-types')
].filter(Boolean)
}
}

0 comments on commit 63c25a9

Please sign in to comment.