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:
parent
bfd2d08ff2
commit
63c25a9c60
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue