UNPKG

@builder.io/mitosis

Version:

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

18 lines (17 loc) 547 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.tryParseJson = void 0; const json5_1 = __importDefault(require("json5")); const tryParseJson = (jsonStr) => { try { return json5_1.default.parse(jsonStr); } catch (err) { console.error('Could not JSON5 parse object:\n', jsonStr); throw err; } }; exports.tryParseJson = tryParseJson;