Last active
May 19, 2018 15:36
-
-
Save ancms2600/fe88b95bc75d3fde316a10ddcb5b818d to your computer and use it in GitHub Desktop.
Minimalist CommonJS module.exports compatibility shim for Node.js Server + Browser Client
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'; | |
(exports=>{ // browser-client reuse shim | |
// ... | |
})(typeof exports === 'undefined' ? window : exports); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment