UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

6 lines (5 loc) 253 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFunctionString = void 0; const getFunctionString = (code) => code.startsWith('function') ? code : `function ${code}`; exports.getFunctionString = getFunctionString;