/
iife.js
55 lines (43 loc) · 1.31 KB
/
iife.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var bundle = (function (exports, foo$1) {
'use strict';
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 'default': e };
function _interopNamespace(e) {
if (e && e.__esModule) return e;
const n = Object.create(null);
if (e) {
for (const k in e) {
if (k !== 'default') {
const d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: () => e[k]
});
}
}
}
n["default"] = e;
return Object.freeze(n);
}
const foo__default = /*#__PURE__*/_interopDefaultLegacy(foo$1);
const foo__namespace = /*#__PURE__*/_interopNamespace(foo$1);
const _missingExportShim = void 0;
const foo = 'bar';
const other = /*#__PURE__*/Object.freeze({
__proto__: null,
foo: foo,
missing: _missingExportShim
});
const synthetic = { bar: 'baz' };
console.log(foo__default["default"], foo__namespace, other, bar, _missingExportShim);
const main = 42;
exports["default"] = main;
exports.syntheticMissing = synthetic.syntheticMissing;
for (const k in foo$1) {
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
enumerable: true,
get: () => foo$1[k]
});
}
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, foo$1);