preact-material-components
Version:
preact wrapper for "Material Components for the web"
17 lines (14 loc) • 352 B
JavaScript
;
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"];