Files
test-repo/tests/integration/custom-parsers/custom-rename-parser.cjs
T

8 lines
165 B
JavaScript

"use strict";
module.exports = function (text, parsers) {
const ast = parsers.babel(text);
ast.program.body[0].expression.callee.name = "bar";
return ast;
};