fixed build window issue:

This commit is contained in:
Jade (Rose) Rowland 2024-06-14 15:28:24 -04:00
parent 2a2ddf205a
commit 1d95da7a3a
3 changed files with 8 additions and 4 deletions

View file

@ -39,6 +39,8 @@ function safeEval(str, options = {}) {
export const evaluate = async (code, transpiler, transpilerOptions) => {
let meta = {};
//post to iframe parent (like Udels) if it exists...
window.parent?.postMessage(code);
if (transpiler) {
// transform syntactically correct js code to semantically usable code
const transpiled = transpiler(code, transpilerOptions);