require
statements like require("lexicon-mono-seq") into a valid url such as https://cdn.jsdelivr.net/npm/lexicon-mono-seq@1.2.4/lexiconMonoSeq.v0.17.3.js or whatever the main
field of package.json is pointing at. Or am I completely wrong with my assumption (which means a build is rendered at your backend servers first)
require
statement replaced and rendered at client side within an iframe via script tag. This would greatly reduce complexity you need to deal on backend => you don't need to watch versions anymore and offload everything to client. I find it reasonable.