From 242b8194b37c983c76703e8eae35961f3930a8a3 Mon Sep 17 00:00:00 2001 From: Chan Kang Date: Tue, 26 Aug 2025 14:56:48 +0900 Subject: [PATCH 1/3] feat: add pack command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4acaca3..c282b65 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "rslib build", "watch": "rslib build --watch", "start": "pnpm build && node ./dist/cli.js", - "link": "pnpm build && npm link --force" + "package": "pnpm build && pnpm pack" }, "main": "dist/index.cjs", "module": "dist/index.mjs", From f45e0fa1fd3b20c4f9bdf6aa6b4d2a5f8a5faf84 Mon Sep 17 00:00:00 2001 From: Chan Kang Date: Tue, 26 Aug 2025 14:56:54 +0900 Subject: [PATCH 2/3] fix: fix widget reload cache issue --- src/configurations/hotReload/widget.proxy.js.template | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/configurations/hotReload/widget.proxy.js.template b/src/configurations/hotReload/widget.proxy.js.template index 3c5404b..ba23216 100644 --- a/src/configurations/hotReload/widget.proxy.js.template +++ b/src/configurations/hotReload/widget.proxy.js.template @@ -44,10 +44,10 @@ function WidgetProxy(props) { const setupViteClient = async () => { await fetch(`${DEV_SERVER_URL}@vite/client`); - const clientModule = await import(`${DEV_SERVER_URL}@vite/client.mjs`); + const clientModule = await import(`${DEV_SERVER_URL}@vite/client.mjs?t=${Date.now()}`); if (clientModule.createHotContext) { - viteClientRef.current = clientModule.createHotContext(`${DEV_SERVER_URL}src/${WIDGET_NAME}.tsx`); + viteClientRef.current = clientModule.createHotContext(`${DEV_SERVER_URL}src/${WIDGET_NAME}.tsx?t=${Date.now()}`); } setViteClientInitialized(true); @@ -63,9 +63,7 @@ function WidgetProxy(props) { .then(() => { loadWidget(); - viteClientRef.current.on('vite:beforeUpdate', () => { - console.log('beforeUpdate'); - + viteClientRef.current.on('vite:afterUpdate', () => { loadWidget(); }); }); From c4c8edf7f5f5053547b9c0075d5c652c19ca39f7 Mon Sep 17 00:00:00 2001 From: Chan Kang Date: Tue, 26 Aug 2025 14:57:32 +0900 Subject: [PATCH 3/3] feat: bump version to 0.1.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c282b65..6441b16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@repixelcorp/hyper-pwt", - "version": "0.1.2", + "version": "0.1.3", "description": "A faster, more modern, superior alternative for Mendix PWT.", "repository": { "type": "git",