swc/bundler/tests/.cache/untrusted/cfbde5fb116f1fad0f708259e8d11efc4be56a90.ts

26 lines
754 B
TypeScript
Raw Normal View History

// 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;
}