Files
Nicolò RibaudoandGitHub feee19f69c Convert @babel/helpers tests to ESM (#14753)
* Convert `@babel/helpers` tests to ESM

* Run some tests on older versions

* Fix

* Update jest.config.js
2022-07-18 16:28:23 +02: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);
}
},
},
};
};