Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « src « debug « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cabcbcda135e862c4780a270a8df97784e65ebb3 (plain)
1
2
3
4
5
6
7
8
9
10
/**
 * Detect Electron renderer process, which is node, but we should
 * treat as a browser.
 */

if (typeof process === 'undefined' || process.type === 'renderer') {
  module.exports = require('./browser.js');
} else {
  module.exports = require('./node.js');
}