Skip to content

Commit

Permalink
Add app-bridge-react and polaris to optimizeDeps
Browse files Browse the repository at this point in the history
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
  • Loading branch information
byrichardpowell committed Feb 3, 2025
1 parent cab6f02 commit 58f1bb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ export default defineConfig({
build: {
assetsInlineLimit: 0,
},
optimizeDeps: {
include: ["@shopify/app-bridge-react", "@shopify/polaris"],
},
}) satisfies UserConfig;

0 comments on commit 58f1bb4

Please sign in to comment.