/
cjs.js
55 lines (44 loc) · 853 Bytes
/
cjs.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
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var external = require('external');
var foo = 13;
const quux = 1;
const other = () => quux;
function baz() {
return foo + external.value;
}
var create = Object.create,
getPrototypeOf = Object.getPrototypeOf;
function unusedButIncluded() {
const unusedConst = 'unused';
if (true) {
true ? 'first' : 'second';
} else {
(true && 'first') || 'second';
}
'sequence', 'expression';
switch ('test') {
case 'test':
(() => {})();
case 'other':
'no effect';
default:
const ignored = 2;
}
}
function test(
unusedParam = {
prop: function test() {
var unused = 1;
}
}
) {}
test({
prop: function test() {
var unused = 1;
}
});
exports.create = create;
exports.getPrototypeOf = getPrototypeOf;
exports.quux = quux;
exports.strange = quux;