Skip to content

Instantly share code, notes, and snippets.

@coreyfarrell
Created December 5, 2019 13:24
Show Gist options
  • Save coreyfarrell/51970cb09c09758b9c1a73eb9c4af28e to your computer and use it in GitHub Desktop.
Save coreyfarrell/51970cb09c09758b9c1a73eb9c4af28e to your computer and use it in GitHub Desktop.
suppress ExperimentalWarning
'use strict';
const {emitWarning} = process;
process.emitWarning = (warning, ...args) => {
if (args[0] === 'ExperimentalWarning') {
return;
}
if (typeof args[0] === 'object' && args[0].type === 'ExperimentalWarning') {
return;
}
return emitWarning(warning, ...args);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment