Created
January 9, 2016 05:33
-
-
Save dantman/a4fc651b96a3e1fe144b to your computer and use it in GitHub Desktop.
require('is-browser') transform
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
.transform(transformTools.makeRequireTransform( | |
{evaluateArguments: true}, | |
(args, opts, cb) => { | |
if ( args[0] === "is-browser" ) { | |
return cb(null, 'true'); | |
} else { | |
return cb(); | |
} | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment