-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodeAdapter.js
More file actions
24 lines (17 loc) · 791 Bytes
/
nodeAdapter.js
File metadata and controls
24 lines (17 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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
(function(define) {
define(function (require, exports, module) {
var b = require('b');
return function () {};
});
}( // Help Node out by setting up define.
typeof module === 'object' && typeof define !== 'function'
? function (factory) { module.exports = factory(require, exports, module); }
: define
));