提交 63c25a9c 编写于 作者: A Akram 提交者: Tim Neutkens

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

上级 bfd2d08f
......@@ -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)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册