UNPKG

919 BJavaScriptView Raw
1const { join } = require('path');
2
3module.exports = {
4 sourceModule: 'react-dom',
5 sourceFile: join('umd', 'react-dom.production.min.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 o => o.type === 'FunctionExpression' ? o : false
19 ],
20 targetSelectSteps: [
21 o => o.body,
22 o => (o.type === 'VariableDeclaration' ? o : false),
23 o => o.declarations,
24 o => (o.type === 'VariableDeclarator' ? o : false),
25 o => o.init,
26 o => (o.type === 'CallExpression' ? o : false)
27 ],
28 importFilename: 'react.production.min.mjs',
29 importSelectSteps: [
30 o => o.body,
31 o => o.type === 'ImportDeclaration' ? o : false,
32 o => o.source
33 ]
34};