Debian Codegraph @

packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/multi-load/plugin.js

raw
1 module.exports = function() {
2 return {
3 visitor: {
4 Identifier: function(path) {
5 if (path.node.name !== "helper") return;
6
7 path.replaceWith(this.addHelper("interopRequireDefault"));
8 },
9 },
10 };
11 };