mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
Adding custom element polyfill (#177)
This commit is contained in:
9
src/index.ts
Normal file
9
src/index.ts
Normal 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');
|
||||
})();
|
||||
Reference in New Issue
Block a user