You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a couple issues with bundle mode.
there was an instance where two functions had the same name collect and esbuild renamed one of them collect2 and the wrong function ended up getting referenced from the sql function. This was easy to fix by renaming one of the functions but it was still a nasty surprise
the bigger issue, it seems like the functions stored on globalThis from the _init function continue to hang around even after _init has been replaced and re-run. This probably has something to do with the plv8 session / context persisting. The main issue is that I want a more reliable way to change the contents of _init and have them take effect immediately
I'm still thinking about a potential solution but wanted to start writing down the issue / thoughts here.
The text was updated successfully, but these errors were encountered:
I mentioned these two issues because I was thinking that they could be solved by the same technique, making _init return the functions instead of putting them on globalThis, but now I realize that won't work because of how _init is called via plv8.execute
I'm running into a couple issues with bundle mode.
collect
and esbuild renamed one of themcollect2
and the wrong function ended up getting referenced from the sql function. This was easy to fix by renaming one of the functions but it was still a nasty surpriseglobalThis
from the_init
function continue to hang around even after_init
has been replaced and re-run. This probably has something to do with the plv8 session / context persisting. The main issue is that I want a more reliable way to change the contents of_init
and have them take effect immediatelyI'm still thinking about a potential solution but wanted to start writing down the issue / thoughts here.
The text was updated successfully, but these errors were encountered: