\r\n```\n\n### Expected behavior\n\nsuccessfully \n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz\r\n Memory: 6.54 GB / 15.88 GB\r\n Binaries:\r\n Node: 16.13.0 - C:\\nodejs\\node.EXE\r\n npm: 8.1.4 - C:\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (98.0.1108.50)\r\n Internet Explorer: 11.0.22000.120\r\n npmPackages:\r\n vitepress: ^0.22.2 => 0.22.2\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2897],{"name":2866,"color":2867},539,"build error:Blob is not defined","2023-01-21T16:20:11Z","https://github.com/vuejs/vitepress/issues/539",0.6849152,{"description":2904,"labels":2905,"number":2907,"owner":2869,"repository":2870,"state":2871,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### 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- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n- Adjust 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\n at enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\n at Object.\u003Canonymous> (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3) \r\n at Module._compile (node:internal/modules/cjs/loader:1101:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\n at Module.load (node:internal/modules/cjs/loader:981:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:190:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\n✖ rendering pages...\r\nbuild error:\r\nReferenceError: document is not defined\r\n at enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\n at Object.\u003Canonymous> (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3)\r\n at Module._compile (node:internal/modules/cjs/loader:1101:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\n at Module.load (node:internal/modules/cjs/loader:981:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:190:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\nPS C:\\ArunSk\\aswin>\r\n\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\n build: {\r\n rollupOptions: {\r\n external: /^bootstrap($|\\/)/,\r\n },\r\n ssr: 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}\r\n\r\n\n\n### Reproduction\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- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n- Adjust 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\n at enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\n at Object.\u003Canonymous> (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3) \r\n at Module._compile (node:internal/modules/cjs/loader:1101:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\n at Module.load (node:internal/modules/cjs/loader:981:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:190:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\n✖ rendering pages...\r\nbuild error:\r\nReferenceError: document is not defined\r\n at enableDismissTrigger (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:826:21)\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:908:3\r\n at C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:7:83\r\n at Object.\u003Canonymous> (C:\\ArunSk\\aswin\\node_modules\\bootstrap\\dist\\js\\bootstrap.js:10:3)\r\n at Module._compile (node:internal/modules/cjs/loader:1101:14)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)\r\n at Module.load (node:internal/modules/cjs/loader:981:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:190:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:185:25)\r\nPS C:\\ArunSk\\aswin>\r\n\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\n build: {\r\n rollupOptions: {\r\n external: /^bootstrap($|\\/)/,\r\n },\r\n ssr: 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}\r\n\r\n\n\n### Expected behavior\n\nBuild Succesful\n\n### System Info\n\n```sh\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\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.",[2906],{"name":2866,"color":2867},2633,"Document is Not defined while building","2023-07-27T00:04:20Z","https://github.com/vuejs/vitepress/issues/2633",0.6894182,{"description":2913,"labels":2914,"number":2916,"owner":2869,"repository":2870,"state":2871,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Describe the bug\r\n\r\n指定端口号后热更新失效,恢复默认之后热更新依旧不生效\r\n\r\n### Reproduction\r\n\r\nvitepress dev docs --host --port 9999\r\n\r\n### Expected behavior\r\n\r\n热更新生效\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem: \r\n OS: Windows 10 10.0.19044 \r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz\r\n Memory: 44.27 GB / 63.71 GB \r\n Binaries: \r\n Node: 14.18.2 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.19 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD \r\n npm: 6.14.15 - C:\\Program Files\\nodejs\\npm.CMD \r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.68)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.75 => 1.0.0-alpha.75\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2915],{"name":2866,"color":2867},2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.6924926,{"description":2922,"labels":2923,"number":1025,"owner":2869,"repository":2870,"state":2871,"title":2924,"updated_at":2925,"url":2926,"score":2927},"\r\n```\r\n├──.vitepress\r\n│ ├──dist\r\n│ │ ├──_assets\r\n│ │ │ ├──app.b8eb737b.js\r\n│ │ │ ├──common-40001381.js\r\n│ │ │ ├──index.md.9d20daf2.js\r\n│ │ │ ├──index.md.9d20daf2.lean.js\r\n│ │ │ └──style.34674f41.css\r\n│ ├──theme\r\n│ │ ├──index.js\r\n│ │ └──Layout.vue\r\n├──index.md\r\n├──package-lock.json\r\n└──package.json\r\n```\r\nWrite according to the document when executing `npx vitepress build`\r\n\r\nbuild error:\r\n ReferenceError: __DEV__ is not defined\r\n at createApp (C:\\Users\\lizhongyao\\Desktop\\vitepress\\node_modules\\vitepress\\dist\\client\\app\\temp\\app.js:433:17)\r\n at Object.renderPage (C:\\Users\\lizhongyao\\Desktop\\vitepress\\node_modules\\vitepress\\dist\\node\\build\\render.js:12:29)\r\n at Object.build (C:\\Users\\lizhongyao\\Desktop\\vitepress\\node_modules\\vitepress\\dist\\node\\build\\build.js:24:28)\r\n",[],"0.3.0build error","2023-01-21T16:25:41Z","https://github.com/vuejs/vitepress/issues/21",0.69415236,{"description":2929,"labels":2930,"number":2932,"owner":2869,"repository":2870,"state":2871,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Describe the bug\r\n\r\nI tried to run vitepress through `npx` without installing it in the local package. And starting from 0.21.4 (I didn't narrow down the version number precisely) `npx vitepress build` won't work, but `npx vitepress dev` works fine.\r\n\r\n```bash\r\n> npx vitepress build docs\r\nvitepress v0.21.4\r\n- building client + server bundles...\r\n✓ building client + server bundles...\r\n- rendering pages...\r\n✖ rendering pages...\r\nbuild error:\r\n Error: Cannot find module 'vue'\r\nRequire stack:\r\n- /home/runner/work/esbuild-dev/esbuild-dev/docs/.vitepress/.temp/app.js\r\n```\r\n\r\nFull output see the table below:\r\n\r\n| version | behavior | log |\r\n|---------|----------|-----|\r\n| 0.20.9 | `dev` fine, `build` fine | [gh action log](https://github.com/hyrious/esbuild-dev/runs/4613503146?check_suite_focus=true#step:5:12) |\r\n| 0.21.4 ~ 0.22.3 | `dev` fine, `build` error | [gh action log](https://github.com/hyrious/esbuild-dev/runs/4824411193?check_suite_focus=true#step:5:18) |\r\n\r\n### Reproduction\r\n\r\nTry this command without installing vitepress:\r\n\r\n```bash\r\nnpx vitepress build docs\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nThe `build` command should work.\r\n\r\n### System Info\r\n\r\n```shell\r\n System:\r\n OS: Windows 10 10.0.19044\r\n CPU: (4) x64 Intel(R) Core(TM) i5-4200H CPU @ 2.80GHz\r\n Memory: 6.00 GB / 11.89 GB\r\n Binaries:\r\n Node: 16.13.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.17 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.5.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.62)\r\n Internet Explorer: 11.0.19041.1202\r\n```\r\n\r\n### Additional context\r\n\r\nI noticed #324 has similar situation but the error message differs.\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2931],{"name":2866,"color":2867},557,"[npx] Cannot find module 'vue'","2023-01-21T16:04:27Z","https://github.com/vuejs/vitepress/issues/557",0.694475,{"description":2938,"labels":2939,"number":2940,"owner":2869,"repository":2870,"state":2871,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Is your feature request related to a problem? Please describe.\n\ndist中的构建产生的html文件中的```__VP_HASH_MAP__``` 顺序不定,哪怕对md文件不进行任何修改,导致只要重新build一次就会使dist中的大量文件发生改动。\r\n\r\n另外,如果有一个md文件发生改动,就会导致构建生成的所有html中的```__VP_HASH_MAP__``` 中的hash码变化。这会导致几乎所有文件都发生了改动。\r\n\r\n我不清楚 vitepress中 **最后更新时间** 是否是按照文件最后一次改动时间算的,目前的问题是只要改一个文件所有文件的最后更新时间都会更新为最新的这个时间。感觉有很大概率是和上面描述的```__VP_HASH_MAP__``` 有关。\r\n\r\n\r\n我的思路是:\r\n\r\n改了一个md文件并重新构建 -> 所有md文件生成的html中的```__VP_HASH_MAP__``` 发生了变化,导致所有html文件都发生了更改 -> 文件最后更改时间全部更新为此时此刻\n\n### Describe the solution you'd like\n\n有什么办法让每个文件都有自己的最后更新时间吗? 非常感谢!\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\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.",[],2303,"最后更新时间始终为最后一次提交的时间","2023-05-05T00:04:12Z","https://github.com/vuejs/vitepress/issues/2303",0.694614,{"description":2946,"labels":2947,"number":2949,"owner":2869,"repository":2870,"state":2871,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### Describe the bug\n\n\u003Cimg width=\"269\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/61684763/10622fbc-efb0-4dbd-a342-5c4e73ed04a0\">\r\n\u003Cimg width=\"1272\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/61684763/42577ef3-634d-459e-bf05-97ada3afef7b\">\r\n以前旧版本是没有这个问题的。升级后才有的。\n\n### Reproduction\n\n升级vitepress打包部署后出现的\n\n### Expected behavior\n\n望能修复正常\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 57.69 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.0/bin/yarn\r\n npm: 9.8.0 - ~/.nvm/versions/node/v16.14.0/bin/npm\r\n Watchman: 2023.03.27.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Safari: 16.5.2\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.",[2948],{"name":2866,"color":2867},2772,"升级vitepress后部署到阿里云服务器后,刷新页面会404","2023-08-18T00:04:13Z","https://github.com/vuejs/vitepress/issues/2772",0.69527656,["Reactive",2955],{},["Set"],["ShallowReactive",2958],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fREYJLnBcMTPhStj2SunLe-T59QTRJ5CFcR3GN9FQ-YI":-1},"/vuejs/vitepress/485"]