mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
280 B
JavaScript
14 lines
280 B
JavaScript
module.exports = ({ types: t }) => ({
|
|
visitor: {
|
|
NumericLiteral(path) {
|
|
path.replaceWith(
|
|
t.jsxElement(
|
|
t.jsxOpeningElement(t.jsxIdentifier("p"), []),
|
|
t.jsxClosingElement(t.jsxIdentifier("p")),
|
|
[]
|
|
)
|
|
);
|
|
}
|
|
}
|
|
});
|