When we update py-shiny in shinylive, we will have to make a few manual changes to support this. _Originally posted by @wch in https://github.com/posit-dev/py-shiny/issues/2030#issuecomment-3099732814_