From 58f1bb48e7f2fbff2656bdcfbc02a766aeb2315d Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Mon, 3 Feb 2025 16:14:13 -0500 Subject: [PATCH] Add app-bridge-react and polaris to optimizeDeps In development its possible (but an edge case) that navigating from one page without these dependencies to another page with the dependencies would cause a full page refresh, which then redirects to the logicn page. By adding this config, we should avoid that edge case --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 82142f42..d380c625 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -63,4 +63,7 @@ export default defineConfig({ build: { assetsInlineLimit: 0, }, + optimizeDeps: { + include: ["@shopify/app-bridge-react", "@shopify/polaris"], + }, }) satisfies UserConfig;