-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
amd.js
37 lines (30 loc) · 857 Bytes
/
amd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
define(['require', 'exports', 'input'], ((require, exports, input) => { 'use strict';
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(k => {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: () => e[k]
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
class Importer {
constructor() {
this.outputPath = input.outputPath;
}
getImport() {
return new Promise((resolve, reject) => require([this.outputPath], m => resolve(/*#__PURE__*/_interopNamespace(m)), reject));
}
}
const promise = new Importer().getImport();
exports.promise = promise;
Object.defineProperty(exports, '__esModule', { value: true });
}));