Created
April 5, 2013 11:15
-
-
Save amatiasq/5318537 to your computer and use it in GitHub Desktop.
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
// Defines a module that works in Node and AMD. | |
// This version can be used as common boilerplate for a library module | |
// that you only want to expose to Node and AMD loaders. It will not work | |
// well for defining browser globals. | |
// If you need a version of this file that works CommonJS-like environments | |
// that do not support module.exports or if you want to define a module | |
// with a circular dependency, see commonjsAdapter.js | |
// Help Node out by setting up define. | |
if (typeof module === 'object' && typeof define !== 'function') { | |
var define = function (factory) { | |
module.exports = factory(require, exports, module); | |
}; | |
} | |
define(function (require, exports, module) { | |
var b = require('b'); | |
return function () {}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment