@builder.io/mitosis
Version:
Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io
12 lines (11 loc) • 478 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseMemberExpression = void 0;
const astring_1 = require("astring");
const hooks_1 = require("../helpers/hooks");
function parseMemberExpression(json, node, parent) {
if ((parent === null || parent === void 0 ? void 0 : parent.type) === 'Program') {
(0, hooks_1.addToOnInitHook)(json, (0, astring_1.generate)(node));
}
}
exports.parseMemberExpression = parseMemberExpression;
;