UNPKG

808 BJavaScriptView Raw
1const { join } = require('path');
2
3module.exports = {
4 sourceModule: 'react',
5 sourceFile: join('umd', 'react.development.js'),
6 sourceSelectSteps: [
7 o => o.body,
8 function(o) {
9 if (o.type === 'ExpressionStatement') {
10 if (o.expression && o.expression.type && o.expression.type === 'CallExpression') {
11 return o;
12 }
13 }
14 return false;
15 },
16 o => o.expression,
17 o => o.arguments,
18 function(o) {
19 if (o.type === 'FunctionExpression') {
20 return o;
21 }
22 return false;
23 }
24 ],
25 targetSelectSteps: [
26 o => o.body,
27 o => (o.type === 'VariableDeclaration' ? o : false),
28 o => o.declarations,
29 o => (o.type === 'VariableDeclarator' ? o : false),
30 o => o.init,
31 o => (o.type === 'CallExpression' ? o : false)
32 ]
33};