From ea65abfdc35319860dd6746eb88d8b8bec5dddac Mon Sep 17 00:00:00 2001 From: Rahim Date: Mon, 1 Jun 2026 12:14:53 -0700 Subject: [PATCH] fix react jsx and cdn references --- packages/react/tsconfig.json | 2 +- packages/vidstack/tsdown.config.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index f76e15081..8e284670a 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "jsx": "preserve", + "jsx": "react", "paths": { "@vidstack/react": ["./src/index.ts"] }, diff --git a/packages/vidstack/tsdown.config.ts b/packages/vidstack/tsdown.config.ts index 7f11650bd..370a388c2 100644 --- a/packages/vidstack/tsdown.config.ts +++ b/packages/vidstack/tsdown.config.ts @@ -277,8 +277,9 @@ function rewriteCDNChunks(file: string): Plugin { for (const chunk of Object.values(bundle)) { if (chunk.type === 'chunk' && chunk.isEntry && chunk.name === file) { chunk.code = chunk.code.replace( - /\"\.\/(chunks|providers)\/(.*?)\"/g, - `"https://cdn.jsdelivr.net/npm/@vidstack/cdn@${version}/$1/$2"`, + /(["'`])\.\/(chunks|providers)\/(.*?)\1/g, + (_match, quote, dir, asset) => + `${quote}https://cdn.jsdelivr.net/npm/@vidstack/cdn@${version}/${dir}/${asset}${quote}`, ); } }