\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.",[2927],{"name":2868,"color":2869},539,"build error:Blob is not defined","2023-01-21T16:20:11Z","https://github.com/vuejs/vitepress/issues/539",0.68774784,{"description":2934,"labels":2935,"number":2939,"owner":2871,"repository":2872,"state":2873,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Is your feature request related to a problem? Please describe.\n\nVitepress is so good,but I want use react,so...\n\n### Describe the solution you'd like\n\nlike @vite/vitepress-plugin-react\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.",[2936],{"name":2937,"color":2938},"wont fix","EDEED1",2295,"Support react?","2023-09-03T00:04:40Z","https://github.com/vuejs/vitepress/issues/2295",0.6905175,{"description":2945,"labels":2946,"number":2948,"owner":2871,"repository":2872,"state":2873,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### 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.",[2947],{"name":2868,"color":2869},2633,"Document is Not defined while building","2023-07-27T00:04:20Z","https://github.com/vuejs/vitepress/issues/2633",0.69063425,{"description":2954,"labels":2955,"number":2957,"owner":2871,"repository":2872,"state":2873,"title":2958,"updated_at":2959,"url":2960,"score":2961},"**Describe the bug**\r\nI try to use npm package QuillJS in .vitepress/theme/index.js\r\n```js\r\nimport Quill from \"quill\";\r\nlet quill = new Quill(\"#container\")\r\n```\r\nwhen I run `npm run dev` it works just fine\r\nbut when I run `npm run build` it failed\r\nand shows an error message: \r\n\r\n> build error:\r\n> ReferenceError: document is not defined\r\n> at Object.\\\u003Canonymous\\> (D:\\vueup-quill\\node_modules\\quill\\dist\\quill.js:7661:12)\r\n> at __webpack_require__ (D:\\vueup-quill\\node_modules\\quill\\dist\\quill.js:36:30)\r\n\r\n**Expected behavior**\r\nIt should work in dev and build mode.\r\n\r\n**System Info**\r\n- vitepress version: v0.12.2\r\n- vite version: v2.0.5\r\n- Node version: v14.15.4\r\n- OS version: Windows 10",[2956],{"name":2868,"color":2869},257,"Can't build vitepress when I use npm package","2023-01-21T14:22:45Z","https://github.com/vuejs/vitepress/issues/257",0.6992091,["Reactive",2963],{},["Set"],["ShallowReactive",2966],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fi1ffs7JEW3SO5PVt10q7jG0BW1tuaD4NWgx7vpznzKQ":-1},"/vuejs/vitepress/1689"]