Adding custom element polyfill (#177)

This commit is contained in:
Jake Archibald
2018-09-27 14:49:45 +01:00
committed by GitHub
parent c9fe5ffbcf
commit 5e66e0acc4
4 changed files with 16 additions and 0 deletions

9
src/index.ts Normal file
View File

@@ -0,0 +1,9 @@
declare module '@webcomponents/custom-elements';
(async function () {
if (!('customElements' in self)) {
await import('@webcomponents/custom-elements');
}
require('./init-app.tsx');
})();