mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
26 lines
754 B
TypeScript
26 lines
754 B
TypeScript
|
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/deps/debug@4.1.1/src/index.dew.js
|
||
|
|
||
|
|
||
|
import { dew as _browserDewDew } from "./browser.dew.js";
|
||
|
import { dew as _nodeDewDew } from "./node.dew.js";
|
||
|
import _process from "../../@jspm/core@1.1.0/nodelibs/process.js";
|
||
|
var exports = {},
|
||
|
_dewExec = false;
|
||
|
export function dew() {
|
||
|
if (_dewExec) return exports;
|
||
|
_dewExec = true;
|
||
|
var process = _process;
|
||
|
|
||
|
/**
|
||
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
||
|
* treat as a browser.
|
||
|
*/
|
||
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
||
|
exports = _browserDewDew();
|
||
|
} else {
|
||
|
exports = _nodeDewDew();
|
||
|
}
|
||
|
|
||
|
return exports;
|
||
|
}
|