Skip to content

Commit

Permalink
Emit no experimental warning in browser. (#367)
Browse files Browse the repository at this point in the history
closes #361
  • Loading branch information
jimmywarting authored and mcollina committed Oct 2, 2018
1 parent 6a1a622 commit b8ac647
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion experimentalWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ function emitExperimentalWarning(feature) {
process.emitWarning(msg, 'ExperimentalWarning');
}

module.exports.emitExperimentalWarning = emitExperimentalWarning;
function noop() {}

module.exports.emitExperimentalWarning = process.emitWarning
? emitExperimentalWarning
: noop;

0 comments on commit b8ac647

Please sign in to comment.