My plug-in code is auto-minified using Terser to about 7.5 KB and runs perfectly when testing. When I submit a new version to Bubble, however, it bloats to more than 9 KB and contains a bunch of code that I didn’t write!
Here’s a snippet of JS code that Bubble seems to have injected into the midst of my own…
I didn’t write any of that. I have no idea where it came from or what it’s for. The worst part is that it’s causing an error in the PUBLISHED version of my plug-in, whereas the testing version runs perfectly!
Of course it’s not defined! I never defined it! I have no idea where it came from. All I know is that the code runs flawlessly when testing and gets corrupted when published. What the…
I spent hours trying to figure out what I was doing wrong before discovering this. I’m not a happy camper.
This is a known issue with some plugin while publishing it. You can search the forum about that. This happen when Bubble minified the plugin code. So you need to cheat that to publish an uminified version.
I’ll try that out tomorrow. I ignored my own protocol and didn’t search the forums first. But then, I just discovered the underlying cause after hours of frustration and probably shouldn’t have posted until getting some rest.
I’ll mark your answer as the solution once I confirm it resolves the issue tomorrow morn.