Grist Desktop with JupyterLite Plugin

I’m wondering whether anyone has collected instructions for packaging an offline version of the JupyterLite plugin for use with Grist Desktop.

I know that there’s a bundle.js script for doing this kind of offline packaging, but it doesn’t seem to have been written with JupyterLite in mind.