From 7201b4aaa828f65264c47b2678011eabdffb4cff Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 11 May 2024 18:32:27 +0900 Subject: [PATCH] import only `.tsx` at the client --- src/client/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/client.ts b/src/client/client.ts index 50cee3f..b91f3e7 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -37,9 +37,9 @@ export type ClientOptions = { export const createClient = async (options?: ClientOptions) => { const FILES = options?.ISLAND_FILES ?? { - ...import.meta.glob('/app/islands/**/[a-zA-Z0-9-]+.(tsx|ts)'), - ...import.meta.glob('/app/**/_[a-zA-Z0-9-]+.island.(tsx|ts)'), - ...import.meta.glob('/app/**/$[a-zA-Z0-9-]+.(tsx|ts)'), + ...import.meta.glob('/app/islands/**/[a-zA-Z0-9-]+.tsx'), + ...import.meta.glob('/app/**/_[a-zA-Z0-9-]+.island.tsx'), + ...import.meta.glob('/app/**/$[a-zA-Z0-9-]+.tsx'), } const hydrateComponent: HydrateComponent = async (document) => {