UNPKG

@uupaa/dynamic-import-polyfill

Version:
33 lines (27 loc) 914 B
<!DOCTYPE html><html><head><meta charset="utf-8"><title>dynamic-import-polyfill</title> </head> <body> <div>Back to <a href="https://github.com/uupaa/dynamic-import-polyfill">dynamic-import-polyfill</a> repository</div> <div class="link-contener"></div> <script> window.onerror = (msg, file, line, column, err) => { console.error(msg, file, line, column, err); document.body.innerHTML += `<p>${msg}, ${file}, ${line}, ${column}, ${err}</p>`; }; </script> <script type="module"> import "./link.js"; </script> <script type="module"> import { importModule } from "../importModule.js"; (async() => { const Modules = { a: "https://uupaa.github.io/dynamic-import-polyfill/test/abs.nested.js", }; console.log("use polyfill edge"); const { a } = await importModule(Modules.a); console.log( a() ); })(); </script> </body> </html>