How to generate a bundle in observable framework!

I’m trying to generate a js bundle in observable framework. I noticed that when I build the project with rimraf dist && observable build, the /dist directory is created, but I want it to generate a single js bundled file, just like it happens when I click Download Code in my hosted notebook, and a file named as something like 86ddbc29bd33f9d6@377.js is downloaded. How to generate this file in Observable Framework?

Observable Framework generates a static site (HTML and JavaScript), not a JavaScript bundle. What exactly do you want to do with a JavaScript bundle?

If you want to embed a page from an Observable Framework app in another site, you might try an iframe as shown here:

https://observablehq.observablehq.cloud/framework-example-responsive-iframe/