1 | module.exports =
|
2 | # name of variable used for imporiting core library using CommonJS require
|
3 | packageVar: null
|
4 | # core library name to detect `packageVar`
|
5 | packageName: "@mfjs/core"
|
6 | # initial state
|
7 | start: "start"
|
8 | # debug output
|
9 | verbose: false
|
10 | # outpus details about how options for specific AST node were chosen
|
11 | policyTrace: false
|
12 | states:
|
13 | coerce: "all"
|
14 | start: {}
|
15 | full:
|
16 | CallExpression:
|
17 | match:
|
18 | name:
|
19 | $: true
|
20 | _: true
|
21 | package:
|
22 | console: true
|
23 | window: true
|
24 | process: true
|
25 | assert: true
|
26 | select: "matchCallName"
|
27 | cases:
|
28 | false:
|
29 | bind: true
|
30 | compile: true
|
31 | disabled:
|
32 | bind: false
|
33 | compile: false
|
34 | minimal:
|
35 | CallExpression:
|
36 | match:
|
37 | name: {}
|
38 | package: {}
|
39 | libVar: true
|
40 | select: "matchCallName"
|
41 | cases:
|
42 | true:
|
43 | bind: true
|
44 | compile: true
|
45 | nothing:
|
46 | bind: false
|
47 | defaultFull:
|
48 | Function:
|
49 | match:
|
50 | name: {}
|
51 | package: {}
|
52 | postfix: {}
|
53 | prefix: {}
|
54 | select: "matchDeclName"
|
55 | cases:
|
56 | true: sub: "minimal"
|
57 | false: sub: "full"
|
58 | defaultMinimal:
|
59 | Function:
|
60 | match:
|
61 | name: {}
|
62 | package: {}
|
63 | postfix: {}
|
64 | prefix: {}
|
65 | select: "matchDeclName"
|
66 | cases:
|
67 | true: sub: "full"
|
68 | false: sub: "minimal"
|
69 | defaultNothing:
|
70 | Function:
|
71 | match:
|
72 | name: {}
|
73 | package: {}
|
74 | postfix: {}
|
75 | prefix: {}
|
76 | select: "matchDeclName"
|
77 | cases:
|
78 | true: sub: "nothing"
|
79 | false: sub: "minimal"
|
80 | regenerator:
|
81 | Function:
|
82 | select: "prop('generator')"
|
83 | cases:
|
84 | true: sub: "regenerate"
|
85 | regenerate:
|
86 | compile: "always"
|
87 | coerce: "none"
|
88 | Function:
|
89 | select: "prop('generator')"
|
90 | cases:
|
91 | false: sub: "regenerator"
|
92 | YieldExpression:
|
93 | mopt: false
|
94 | bind: true
|
95 |
|
96 |
|