Browse Source

Add source map

Jeremie Pardou-Piquemal 1 year ago
parent
commit
50f9cc12eb
2 changed files with 7 additions and 1 deletions
  1. 4 1
      src/webconf/react-useOpenVidu/useOpenVidu.jsx
  2. 3 0
      vite.config.js

+ 4 - 1
src/webconf/react-useOpenVidu/useOpenVidu.jsx

@@ -221,7 +221,10 @@ export const OpenViduProvider = ({
       });
 
       const token = await getToken(room);
-      await newSession.connect(token, getUserData());
+
+      const userData = getUserData();
+      console.log(token, userData);
+      await newSession.connect(token, userData);
 
       setLocalStream(
         new LocalStream({ session: newSession, OV: OVRef.current })

+ 3 - 0
vite.config.js

@@ -68,5 +68,8 @@ export default defineConfig({
     reactRefresh(),
     analyze({ summaryOnly: true, hideDeps: true, limit: 20 }),
   ],
+  build: {
+    sourcemap: "inline",
+  },
   ...proxy,
 });