* closes #73

* closes #73
This commit is contained in:
Ritesh Kumar authored and GitHub committed 2018-03-29 01:33:18 +05:30
1 parent d1a9a9ae85
commit b00a4d4148
10 files changed
+141 -47

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { jsxToJson } from "jsx-to-json";
import stringify from "stringify-object";
export function transform(code) {
try {
return { value: stringify(eval(jsxToJson(code))), code: 1 };
} catch (e) {
return { value: e.message, code: 0 };
}
}
@@ -1,6 +1,5 @@
import { transform } from "babel-standalone";
import convert from "babel-plugin-object-styles-to-template";
import immutablePropsPlugin from "../utils/babel-plugin-js-to-immutable-prop-types";
import registerPromiseWorker from "promise-worker/register";
registerPromiseWorker(