Files
babel/packages/babel-helpers/test/fixtures/behavior/get-without-receiver/plugin.js
2021-11-09 17:39:41 +01:00

13 lines
246 B
JavaScript

module.exports = function() {
return {
visitor: {
Identifier(path) {
if (path.node.name === "HELPER_GET") {
const helper = this.addHelper("get");
path.replaceWith(helper);
}
},
},
};
};