Skip to content

Commit

Permalink
Allow extending transform-runtime without loosing next defaults (#5022)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX authored and timneutkens committed Aug 24, 2018
1 parent e11d08a commit d6676e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/babel/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ module.exports = (context, opts = {}) => ({
require('./plugins/react-loadable-plugin'),
[require('@babel/plugin-proposal-class-properties'), opts['class-properties'] || {}],
require('@babel/plugin-proposal-object-rest-spread'),
[require('@babel/plugin-transform-runtime'), opts['transform-runtime'] || {
[require('@babel/plugin-transform-runtime'), {
helpers: false,
regenerator: true
regenerator: true,
...opts['transform-runtime']
}],
[require('styled-jsx/babel'), styledJsxOptions(opts['styled-jsx'])],
process.env.NODE_ENV === 'production' && require('babel-plugin-transform-react-remove-prop-types')
Expand Down

0 comments on commit d6676e6

Please sign in to comment.