Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active January 6, 2018 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/633eb6a256345cf4f2f060379b9495a0 to your computer and use it in GitHub Desktop.
Save ryanburnette/633eb6a256345cf4f2f060379b9495a0 to your computer and use it in GitHub Desktop.
(function (exports) {
function foo() {
return 'foo';
}
function bar() {
return 'bar';
}
exports.foo = foo;
exports.bar = bar;
}(typeof module !== 'undefined' ? module.exports : window))
var foo = require('foo-bar.js').foo;
var bar = require('foo-bar.js').bar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment