fast-mutex
fast-mutex copied to clipboard
The debug dependency package is too old.
The current version of the debug dependency package is 2.2.x.
"dependencies": {
"debug": "^2.2.0"
}
It determines which environment code to load like this:
if (typeof process === 'undefined' || process.type === 'renderer') {
module.exports = require('./browser.js');
} else {
module.exports = require('./node.js');
}
This may cause node.js
to be loaded in the browser environment. It is fixed in the latest debug
(such as 4.3.1
), so I recommended to upgrade the version.