mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
34 lines
870 B
HTML
34 lines
870 B
HTML
<html><head>
|
|
<title>My app</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>(function() {
|
|
function loadScript(src, module) {
|
|
return new Promise(function (resolve, reject) {
|
|
document.head.appendChild(Object.assign(
|
|
document.createElement('script'),
|
|
{ src: src, onload: resolve, onerror: reject },
|
|
module ? { type: 'module' } : undefined
|
|
));
|
|
});
|
|
}
|
|
|
|
var polyfills = [];
|
|
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
|
|
|
|
function loadEntries() {
|
|
['./app.js','./inline-module-0.js?source=%2Findex.html','./inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { window.importShim(entry); });
|
|
}
|
|
|
|
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
|
|
})();</script></body></html> |