swc/bundler/tests/.cache/untrusted/cfbde5fb116f1fad0f708259e8d11efc4be56a90.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

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