1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

update preset.ts to use isProduction variable (#6234)

This commit is contained in:
Akram 2019-02-10 18:45:51 +01:00 committed by Tim Neutkens
parent bfd2d08ff2
commit 63c25a9c60

View file

@ -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)
}
}