@stuart4 is essentially correct. Bubble doesn’t generate anything like a static site (like, say, Gatsby). It’s an entire full-stack system with its own unique database, server architecture, etc. There are front-end web components (your page layouts and stuff) and then the specific backend, plugin architecture, the front-end code (run.js, static.js, etc. — that’s Bubble), the backend environment, the components that serve the web page HTML, code sources, CSS, etc.
These don’t operate independently and neither are they environment agnostic (e.g., Bubble runs in AWS and wouldn’t be easily portable anywhere else).
When you’re putting together a workflow, Bubble doesn’t really translate that to some specific code and you’re not writing code, it’s just a recipe for a series of function calls that get made to stuff that’s mostly in run.js.
This is a long way of saying that the closest you could ever come to getting “your code” “out of” Bubble is already offered by Bubble. It’s called a dedicated instance.
Now, I know people are like, well, let me host that instance. But that’s just asking for a discount, right?
(Nothing wrong with asking for a discount BTW, but there’s no real further meaning to “exporting your code” from Bubble than the whole shebang hosted in a dedicated instance.)