Debian Codegraph @

packages/babel-plugin-transform-react-jsx/test/fixtures/regression/issue-12478-automatic/plugin.js

raw
1 module.exports = ({ types: t }) => ({
2 visitor: {
3 NumericLiteral(path) {
4 path.replaceWith(
5 t.jsxElement(
6 t.jsxOpeningElement(t.jsxIdentifier("p"), []),
7 t.jsxClosingElement(t.jsxIdentifier("p")),
8 []
9 )
10 );
11 }
12 }
13 });