mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
module.exports = function ({ types: t }) {
|
|
return {
|
|
visitor: {
|
|
Program: {
|
|
enter(path) {
|
|
path.pushContainer(
|
|
"body",
|
|
t.jsxElement(
|
|
t.jsxOpeningElement(t.jsxIdentifier("div"), [], false),
|
|
t.jsxClosingElement(t.jsxIdentifier("div")),
|
|
[]
|
|
)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|