Closed micuat closed 1 year ago
I see people suggest using esmify but with browserify ./index.js -p esmify
I see same errors :(
Is browserify anyways deprecated and we should use something else?
hydra-synth is supposed to be esmifying already, could it be that this part is not working??
I'm giving up investigating this issue because I can't really reproduce the error to determine which hydra-synth started to break this. After all, with any hydra-synth, browserify on web-editor fails on my environment :(
What I suggest is to switch the build environment to something modern like vite. Here is my test using choo and hydra https://glitch.com/edit/#!/choo-hydra-vite
edit: the above project works with serving (vite
) but the build doesn't work (vite build
)
It seems like this line is causing an error (parent not defined) when I try to
if I comment it out, it works as normal (I don't know how it works in a live editor)
fixed for now by creating a separate glsl-functions file. I think we should still investigate all of this though!