mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
12 lines
232 B
JavaScript
12 lines
232 B
JavaScript
module.exports = function() {
|
|
return {
|
|
visitor: {
|
|
Identifier: function(path) {
|
|
if (path.node.name !== "helper") return;
|
|
|
|
path.replaceWith(this.addHelper("interopRequireDefault"));
|
|
},
|
|
},
|
|
};
|
|
};
|