From da1887e0bfaa90afcf96aec9f9c73395a19ac7cb Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Wed, 10 Jan 2024 23:38:39 -0300 Subject: [PATCH] add module type to allow vite compilation to run --- apps/connect/src/components/ConnectLoader.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/connect/src/components/ConnectLoader.tsx b/apps/connect/src/components/ConnectLoader.tsx index 1d8e70655..927ae2cb7 100644 --- a/apps/connect/src/components/ConnectLoader.tsx +++ b/apps/connect/src/components/ConnectLoader.tsx @@ -24,6 +24,7 @@ export default function ConnectLoader({ config }: WormholeLoaderProps) { useEffect(() => { const script = document.createElement("script"); script.src = `assets/wormhole-connect/main.js`; + script.type = "module"; if (VITE_APP_JS_WC_INTEGRITY_SHA_384) { script.integrity = `sha384-${VITE_APP_JS_WC_INTEGRITY_SHA_384}`; }