mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Disable moment deprecation warnings in production (#170827)
## Summary Disable `momentjs` deprecation warnings in production environment to avoid unexpected `console.log` entries.
This commit is contained in:
parent
a173300abc
commit
c834113fb1
2 changed files with 12 additions and 0 deletions
|
@ -9,4 +9,5 @@
|
|||
require('../setup_node_env/dist');
|
||||
require('./apm')();
|
||||
require('../setup_node_env/root');
|
||||
require('../setup_node_env/mute_libraries');
|
||||
require('./cli');
|
||||
|
|
11
src/setup_node_env/mute_libraries.js
Normal file
11
src/setup_node_env/mute_libraries.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
// disable moment deprecation warnings
|
||||
var moment = require('moment');
|
||||
moment.suppressDeprecationWarnings = true;
|
Loading…
Add table
Add a link
Reference in a new issue