charset="UTF-8"> <title>Awesome App//title> //head> <body> <script src="https://vendor.11xx.js">//script> <script src="https://main.xx11.js" entry>//script> //body> //html> // on host app importHTML('https://xxx.com') .then(res /> { res.execScripts().then(exports /> { // exports is, as you expected, the exports from the main.js }) })