mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
12 lines
192 B
JavaScript
12 lines
192 B
JavaScript
module.exports = function (babel) {
|
|
const { types: t } = babel;
|
|
|
|
return {
|
|
visitor: {
|
|
Program(path) {
|
|
path.scope.addGlobal(t.identifier("index"));
|
|
},
|
|
},
|
|
};
|
|
};
|