` , no errors.\n\n### Expected behavior\n\nno errors, compile success\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz\r\n Memory: 16.46 GB / 31.85 GB\r\n Binaries:\r\n Node: 14.18.2 - E:\\apps\\node-v14\\node.EXE\r\n Yarn: 1.22.10 - E:\\apps\\node-v14\\node_global\\yarn.CMD\r\n npm: 7.20.0 - E:\\apps\\node-v14\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.50)\r\n Internet Explorer: 11.0.19041.1202\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.",[3063],{"name":3064,"color":3065},"need more info","bdbefc",534,"in markdown file, use image file, image file exists and path correct, but image load failed","2023-01-21T14:34:14Z","https://github.com/vuejs/vitepress/issues/534",0.71495867,{"description":3072,"labels":3073,"number":3075,"owner":3024,"repository":3025,"state":3038,"title":3076,"updated_at":3077,"url":3078,"score":3079},"### 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.",[3074],{"name":3035,"color":3036},2653,"Build issue ","2023-07-28T00:04:08Z","https://github.com/vuejs/vitepress/issues/2653",0.7204282,{"description":3081,"labels":3082,"number":3083,"owner":3024,"repository":3025,"state":3038,"title":3084,"updated_at":3085,"url":3086,"score":3087},"### Is your feature request related to a problem? Please describe.\n\n你好,我在md文件引入了自己的vue组件,但外层有一个.vp-doc元素自带的一堆样式总是会影响到自己开发的组件样式,这种情况该如果解决?\n\n### Describe the solution you'd like\n\n\r\n比如ezlist 引入了tabel,那就会受到.vp-doc的这行影响,从而改变布局\r\n.vp-doc table {\r\n display: block;\r\n border-collapse: collapse;\r\n margin: 20px 0;\r\n overflow-x: auto;\r\n}\r\n\r\n# list.md 文件\r\n\u003CEzList>\u003C/Ezlist>\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.",[],2551,"自己定义的vue组件总是受到外层.vp-doc样式影响","2023-09-02T00:04:13Z","https://github.com/vuejs/vitepress/issues/2551",0.7224513,{"description":3089,"labels":3090,"number":3092,"owner":3024,"repository":3025,"state":3038,"title":3093,"updated_at":3094,"url":3095,"score":3096},"### Describe the bug\n\nRelated or identical to this locked issue:\r\n- https://github.com/vuejs/vitepress/issues/1004\r\n\r\nWhen running `npm run docs:build`, the build fails with the following error message:\r\n\r\n```\r\n✓ building client + server bundles...\r\nbuild error:\r\nError: ENOTEMPTY: directory not empty, rmdir '\\\\?\\D:\\path\\to\\project\\docs\\.vitepress\\.temp'\r\n at Object.rmdirSync (node:fs:1226:10)\r\n at _rmdirSync (node:internal/fs/rimraf:260:21)\r\n at rimrafSync (node:internal/fs/rimraf:193:7)\r\n at Object.rmSync (node:fs:1275:10)\r\n at build (file:///D:/path/to/project/node_modules/vitepress/dist/node/serve-d5608de4.js:41814:12)\r\n```\r\n\r\nThe directory is empty afterwards, and does not exist before running `npm run docs:build`.\r\n\n\n### Reproduction\n\nHappens consistently (100%) for some projects and never (0%) for other projects. Have not found a pattern or trivial reproduction yet.\n\n### Expected behavior\n\nCan either build or get an actionable error message\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz\r\n Memory: 40.60 GB / 63.85 GB\r\n Binaries:\r\n Node: 18.13.0 - D:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.13.2 - D:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 114.0.5735.110\r\n Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.57)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.1 => 1.0.0-beta.1\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.",[3091],{"name":3035,"color":3036},2482,"Build fails with `Error: ENOTEMPTY: directory not empty, rmdir docs\\.vitepress\\.temp`","2023-06-15T00:04:11Z","https://github.com/vuejs/vitepress/issues/2482",0.726252,{"description":3098,"labels":3099,"number":3100,"owner":3024,"repository":3025,"state":3038,"title":3101,"updated_at":3102,"url":3103,"score":3104},"### Is your feature request related to a problem? Please describe.\n\ni am using component library in VitePress project, i want to change dark mode of component library when mode of VitePress have changed\n\n### Describe the solution you'd like\n\nCan you provide a `onChange` callback of mode button\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.",[],2387,"callback of theme change ?","2023-05-27T00:03:44Z","https://github.com/vuejs/vitepress/issues/2387",0.73223186,{"description":3106,"labels":3107,"number":3112,"owner":3024,"repository":3025,"state":3038,"title":3113,"updated_at":3114,"url":3115,"score":3116},"Currently there are lot of repeated icons in generated dist/**/*.html files. Those can be avoided by these.",[3108,3109],{"name":3021,"color":3022},{"name":3110,"color":3111},"perf","378A61",3399,"Switch to CSS icons or SVG sprites","2024-02-25T00:05:04Z","https://github.com/vuejs/vitepress/issues/3399",0.73663175,["Reactive",3118],{},["Set"],["ShallowReactive",3121],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkTkvBukavaqbmupZJMgEUuNTOR8csab3dX-6n2TeEks":-1},"/vuejs/vitepress/2981"]