We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 503ddcf + 9b35f29 commit 2c6190fCopy full SHA for 2c6190f
lib/loglevel.js
@@ -6,10 +6,10 @@
6
*/
7
(function (root, definition) {
8
"use strict";
9
- if (typeof module === 'object' && module.exports && typeof require === 'function') {
10
- module.exports = definition();
11
- } else if (typeof define === 'function' && typeof define.amd === 'object') {
+ if (typeof define === 'function' && define.amd) {
12
define(definition);
+ } else if (typeof module === 'object' && module.exports) {
+ module.exports = definition();
13
} else {
14
root.log = definition();
15
}
0 commit comments