From 7963f15495892abec6d050fb2b2f00904ffd6d35 Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 15 Oct 2024 16:30:33 +0900 Subject: [PATCH] =?UTF-8?q?alias=20=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/recvonly/index.html | 1 + examples/recvonly/main.mts | 6 ++++++ vite.config.mjs | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/examples/recvonly/index.html b/examples/recvonly/index.html index 366c5d2e..efa98655 100644 --- a/examples/recvonly/index.html +++ b/examples/recvonly/index.html @@ -8,6 +8,7 @@

Recvonly test

+


diff --git a/examples/recvonly/main.mts b/examples/recvonly/main.mts index a45e4697..4b58d7af 100644 --- a/examples/recvonly/main.mts +++ b/examples/recvonly/main.mts @@ -19,6 +19,12 @@ document.addEventListener('DOMContentLoaded', () => { ACCESS_TOKEN, ) + // SDK バージョンの表示 + const sdkVersionElement = document.querySelector('#sdk-version') + if (sdkVersionElement) { + sdkVersionElement.textContent = `${Sora.version()}` + } + document.querySelector('#connect')?.addEventListener('click', async () => { await client.connect() }) diff --git a/vite.config.mjs b/vite.config.mjs index fffec77c..8f4fbea5 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -5,6 +5,11 @@ import { defineConfig } from 'vite' export default defineConfig({ root: resolve(__dirname, 'examples'), + resolve: { + alias: { + 'sora-js-sdk': resolve(__dirname, 'dist/sora.mjs'), + }, + }, build: { rollupOptions: { input: {