Merge pull request #2986 from overleaf/jpa-silence-react

[misc] silence react messages in the dev-tools console

GitOrigin-RevId: 7ef4d783d0db55fb3fec6d15b9c76191cd49dd6c
This commit is contained in:
Hugh O'Brien 2020-07-13 12:24:43 +01:00 committed by Copybot
parent ff2ee573bb
commit 0a0e649518

View file

@ -232,6 +232,11 @@ module.exports = {
writeToFileEmit: true
}),
// Silence react messages in the dev-tools console
new webpack.DefinePlugin({
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({ isDisabled: true })'
}),
// Prevent moment from loading (very large) locale files that aren't used
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,