GT2/GT2-iOS/node_modules/babel-plugin-transform-obje.../lib/index.js

17 lines
352 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
"use strict";
exports.__esModule = true;
exports.default = function () {
return {
visitor: {
CallExpression: function CallExpression(path, file) {
if (path.get("callee").matchesPattern("Object.assign")) {
path.node.callee = file.addHelper("extends");
}
}
}
};
};
module.exports = exports["default"];