Created
December 5, 2019 13:24
-
-
Save coreyfarrell/51970cb09c09758b9c1a73eb9c4af28e to your computer and use it in GitHub Desktop.
suppress ExperimentalWarning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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