@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
14 lines (13 loc) • 454 B
JavaScript
// src/functions/ExportUtility.ts
function createExportableElement(element) {
try {
let elementString = JSON.stringify(element);
return JSON.parse(elementString);
} catch (e) {
console.error("[Pixi'VN] Error creating exportable element", e);
throw new Error("[Pixi'VN] Error creating exportable element");
}
}
export { createExportableElement };
//# sourceMappingURL=ExportUtility.mjs.map
//# sourceMappingURL=ExportUtility.mjs.map