Closed micuat closed 11 months ago
src issue - somehow js-beautify is overriding var src
. But even when I comment out this line in editor.js
https://github.com/hydra-synth/hydra/blob/main/frontend/web-editor/src/views/editor/editor.js#L12
https://github.com/hydra-synth/hydra/blob/main/frontend/web-editor/src/views/editor/editor.js#L84
src object is still assigned to something else - this case BoundFunctionObject.
it's kind of weird because for example render
is a bound function, but src
as a bound function doesn't work, perhaps overrode by something not hydra
at least this will fix beautify's contamination
let beautify_js
{
beautify_js = import("js-beautify").js_beautify
}
the other src value seems to come from vite's polyfill... which you can disable here, but then I get parent is undefined
error from the sandbox again
https://vitejs.dev/config/build-options.html
edit: I think this was completely irrelevant
corresponding https://github.com/hydra-synth/hydra-synth/pull/143
src
doesn't seem to work: https://github.com/hydra-synth/hydra-synth/pull/143#issuecomment-1559566505