Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix: pages using tanstack query cannot be loaded in production build (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Feb 24, 2023
1 parent 3fa95fc commit de2612d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"qs": "^6.11.0",
"transliteration": "^2.3.5",
"vue": "^3.2.45",
"vue-demi": "^0.13.11",
"vue-grid-layout": "3.0.0-beta1",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.6",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/build/library-external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export const setupLibraryExternal = (
dest: "assets/vue-router",
rename: `vue-router.global.${staticSuffix}.js`,
},
{
src: `./node_modules/vue-demi/lib/index.iife.js`,
dest: "assets/vue-demi",
rename: `vue-demi.${staticSuffix}.js`,
},
{
src: "./node_modules/@vueuse/shared/index.iife.min.js",
dest: "assets/vueuse",
Expand Down Expand Up @@ -88,6 +93,7 @@ export const setupLibraryExternal = (
"@vueuse/core": "VueUse",
"@vueuse/components": "VueUse",
"@vueuse/router": "VueUse",
"vue-demi": "VueDemi",
}),
ViteStaticCopy({
targets: staticTargets,
Expand Down

1 comment on commit de2612d

@vercel
Copy link

@vercel vercel bot commented on de2612d Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-main-halo-dev.vercel.app
halo-admin-ui.vercel.app
ui-halo-dev.vercel.app

Please sign in to comment.