mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
29 lines
701 B
TypeScript
29 lines
701 B
TypeScript
// Loaded from https://dev.jspm.io/npm:jszip@3.5.0/lib/external.dew.js
|
|
|
|
|
|
import { dew as _npmLieDew } from "/npm:lie@3.3?dew";
|
|
var exports = {},
|
|
_dewExec = false;
|
|
export function dew() {
|
|
if (_dewExec) return exports;
|
|
_dewExec = true;
|
|
// load the global object first:
|
|
// - it should be better integrated in the system (unhandledRejection in node)
|
|
// - the environment may have a custom Promise implementation (see zone.js)
|
|
var ES6Promise = null;
|
|
|
|
if (typeof Promise !== "undefined") {
|
|
ES6Promise = Promise;
|
|
} else {
|
|
ES6Promise = _npmLieDew();
|
|
}
|
|
/**
|
|
* Let the user use/change some implementations.
|
|
*/
|
|
|
|
|
|
exports = {
|
|
Promise: ES6Promise
|
|
};
|
|
return exports;
|
|
} |