@jbrowse/react-linear-genome-view2 v5 (currently the next prerelease on npm) built with vite. The RPC worker is one import: esm/rpcWorker?worker, with worker: { format: "es" } in vite.config.ts.
See it running at https://jbrowse.org/demos/lgv-vite/.
pnpm install
pnpm devpnpm build writes a static site.
More examples: https://jbrowse.org/storybook/, and the embedding guide.