\r\n \u003CEmpty />\r\n \u003C/div>\r\n\u003C/template>\r\n\u003Cscript lang=\"ts\" setup>\r\nimport { Empty } from 'ant-design-vue';\r\nimport { ref } from \"vue\"\r\nconst visible = ref(true)\r\n\r\nconst handleClick = () => {\r\n visible.value = !visible.value\r\n\r\n}\r\n\u003C/script>\r\n\r\n```\r\n\n\n### Reproduction\n\n# Steps\r\n1. build. \r\nvitepress build docs.\r\n2. serve.\r\nvitepress serve docs. \r\n3. Click Button in the page.\r\n\r\n\r\n# Problem I face \r\nEverything is normal at the first.But when I click the button to change the element in the page, 'Empty' component cannot be rendered.\r\n\u003Cimg width=\"1672\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/00a0982a-5c11-47bc-adad-8e887380493a\">\r\n\n\n### Expected behavior\n\n# Expected. \r\nNo matter re-render times, I hope it can be rendered normal.\r\n\r\n\u003Cimg width=\"1676\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/74275c38-190d-49b5-a53a-4f23e2d123c7\">\r\n\n\n### System Info\n\n```Text\nThere's no any extra info.\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2938],{"name":2939,"color":2940},"bug: pending triage","e99695",3718,"ant-design-vue some components cannot render twice under vitepress build.","2024-04-28T12:25:19Z","https://github.com/vuejs/vitepress/issues/3718",0.75553846,{"description":2947,"labels":2948,"number":2950,"owner":2869,"repository":2870,"state":2922,"title":2951,"updated_at":2952,"url":2953,"score":2954},"### Describe the bug\n\n**Question 1**: \nWhen I refresh the browser while reading a document, the scrollbar is at the top before the page is fully loaded, which means scrollY is 0. It then returns to the last reading position. This process is not smooth visually, as there is a relatively long interval in the middle.\n\n\nI also found that the VitePress documentation site has the same issue.\n\n\n\n**Question 2**: \nHow to make the scrollbar not return to the last position after refreshing the browser, but always stay at the top?\n\nBecause I am developing a VitePress theme, as shown in the screenshot of question one, it shows that after the page is loaded, a line-by-line display animation effect will be played. If the scrollbar returns to the last position, then when the animation has not yet played into the visible area, there will be a period of blank content, so I hope to find a method that can make the page always return to the top each time the page is refreshed.\n\n### Reproduction\n\nrepo: https://github.com/hacxy/vitepress-theme-mild\n\n### Expected behavior\n\nProvide option to disable the scrollbar returning to the position before refreshing the page after refreshing.\n\n\n### System Info\n\n```Text\nSystem:\n OS: macOS 15.1.1\n CPU: (8) arm64 Apple M2\n Memory: 81.88 MB / 16.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node\n Yarn: 1.22.22 - ~/.nvm/versions/node/v20.16.0/bin/yarn\n npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm\n pnpm: 9.15.0 - ~/.nvm/versions/node/v20.16.0/bin/pnpm\n Browsers:\n Chrome: 131.0.6778.265\n Safari: 18.1.1\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2949],{"name":2939,"color":2940},4506,"Page refresh scroll bar position.","2025-01-31T04:42:32Z","https://github.com/vuejs/vitepress/issues/4506",0.7675109,{"description":2956,"labels":2957,"number":2958,"owner":2869,"repository":2870,"state":2922,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Is your feature request related to a problem? Please describe.\n\nIt seems that vitepress will store the sidebar in each html. When the site has many pages, it will be quite big. \n\nit became larger in square. \n\n### Describe the solution you'd like\n\nsave the sidebar data in somewhere such as /sidebar\nxml.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\nOr has it been configable? \n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [x] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],4552,"Move sidebar data to a file to reduce file size.","2025-02-17T04:43:22Z","https://github.com/vuejs/vitepress/issues/4552",0.77610946,{"description":2964,"labels":2965,"number":2967,"owner":2869,"repository":2870,"state":2922,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Describe the bug\n\nActuall I am using one pakage in vue component and I am importing my vue component in vitepress then when I am trying to build I am getting this error\r\n\r\n(!) Some chunks are larger than 500 kBs after minification. Consider:\r\n\r\nUsing dynamic import() to code-split the application\r\nUse build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\nAdjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n✓ building client + server bundles...\r\n⠙ rendering pages...ReferenceError: document is not defined\r\nat enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\nat C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\nat C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\nat Object. (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3)\r\nat Module._compile (node:internal/modules/cjs/loader:1101:14)\r\nat Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\nat Module.load (node:internal/modules/cjs/loader:981:32)\r\nat Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\nat ModuleWrap. (node:internal/modules/esm/translators:190:29)\r\nat ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\n✖ rendering pages...\r\nbuild error:\r\nReferenceError: document is not defined\r\nat enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\nat C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\nat C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\nat Object. (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3)\r\nat Module._compile (node:internal/modules/cjs/loader:1101:14)\r\nat Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\nat Module.load (node:internal/modules/cjs/loader:981:32)\r\nat Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\nat ModuleWrap. (node:internal/modules/esm/translators:190:29)\r\nat ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\nPS C:\\ArunSk\\aswin>\r\nif I comment that package and try to build it's building fine and I have added config.ts also\r\n\r\nimport { UserConfig } from 'vite';\r\n\r\nconst config: UserConfig = {\r\n// Other Vite configuration options...\r\nbuild: {\r\nrollupOptions: {\r\nexternal: /^bootstrap($|/)/,\r\n},\r\nssr: false,\r\n},\r\n};\r\n\r\nexport default config;\r\n\r\nmy package.json\r\n\r\n{\r\n\"scripts\": {\r\n\"docs:dev\": \"vitepress dev docs\",\r\n\"docs:build\": \"vitepress build docs\",\r\n\"docs:preview\": \"vitepress preview docs\"\r\n},\r\n\"peerDependencies\": {\r\n\"markdown-it-container\": \"^3.0.0\",\r\n\"vitepress\": \"\",\r\n\"vue\": \"^3.2.0\"\r\n},\r\n\"devDependencies\": {\r\n\"@types/markdown-it\": \"^12.2.3\",\r\n\"@types/markdown-it-container\": \"^2.0.5\",\r\n\"@types/node\": \"^18.16.3\",\r\n\"lint-staged\": \"^13.2.2\",\r\n\"vue\": \"^3.2.38\"\r\n},\r\n\"dependencies\": {\r\n\"bootstrap\": \"^5.2.0\",\r\n\"fire-stars\": \"^0.0.1\",\r\n\"markdown-it\": \"^13.0.1\",\r\n\"markdown-it-container\": \"^3.0.0\",\r\n\"sass\": \"^1.63.6\",\r\n\"vitepress\": \"\",\r\n\"vue\": \"^3.2.0\"\r\n}\r\n}\n\n### Reproduction\n\nSo is it possible to sort out that issue with vite config ts \r\n\r\n// vite.config.ts\r\nimport { defineConfig } from 'vite';\r\nimport { UserConfig } from 'vite';\r\n\r\nconst config: UserConfig = {\r\nbuild: {\r\nrollupOptions: {\r\nexternal: ['fire-stars'], // Add external module\r\noutput: {\r\nglobals: {\r\n'fire-stars': 'fireStars', // Provide global variable name for the external module\r\n},\r\n},\r\n},\r\n},\r\n};\r\n\r\nexport default defineConfig(config);\r\n\r\nso is it posiible with vite config ts file ?\n\n### Expected behavior\n\nBuild susseful \r\n\r\nAnd this is my old question same issue But now I want in diff approch\r\n\r\nhttps://github.com/vuejs/vitepress/issues/2633\n\n### System Info\n\n```sh\n{\r\n \"devDependencies\": {\r\n \"vitepress\": \"^1.0.0-beta.5\"\r\n },\r\n \"scripts\": {\r\n \"docs:dev\": \"vitepress dev vitepress\",\r\n \"docs:build\": \"vitepress build vitepress\",\r\n \"docs:preview\": \"vitepress preview vitepress\"\r\n },\r\n \"dependencies\": {\r\n \"fire-stars\": \"^0.0.1\",\r\n \"sass\": \"^1.63.6\"\r\n }\r\n}\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2966],{"name":2939,"color":2940},2653,"Build issue ","2023-07-28T00:04:08Z","https://github.com/vuejs/vitepress/issues/2653",0.78083646,["Reactive",2973],{},["Set"],["ShallowReactive",2976],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fu05UxMmkPj0Op-uRIk1E-6ELXNQgLNvG2D-RijeGupg":-1},"/vuejs/vitepress/3667"]