\r\n\r\nbut in Layout.vue it uses Header and Header uses themeConfig that is a Symbol: \r\n```vue\r\n// Layout.vue\r\n\u003Ctemplate>\r\n \u003CHeader :nav=\"Navlist\">\u003C/Header>\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nimport Header from \"../header/index.vue\";\r\n\u003C/script>\r\n// Header.vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { inject, computed } from \"vue\";\r\nimport { themeConfig } from \"../../compositions/configProvider\"; // Notice this line\r\n\r\nconst theme = inject(themeConfig)!; // Notice this line\r\n```\r\nIn Header.vue, themeConfig exists in myTheme/src/compositions/configProvider.ts, \r\nbut in .vitepress/cache/deps/myTheme.js, it also exits a themeConfig.\r\ntwo themeConfig, two Symbol.\r\n***In the result***, provide/inject is fail.\r\n\r\n\r\nIn development this is bad, in production, the configProvider module is not extracted, the themeConfig variable is unique.\n\n### Reproduction\n\nas mentioned earlier\n\n### Expected behavior\n\nIn development, some es module that come from node_modules ain't extracted, the variable don't be duplicated.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22000\r\n Binaries:\r\n Node: 18.16.0\r\n pnpm: 8.6.0\r\n npmPackages:\r\n vitepress: 1.0.0-rc.31\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.",[2867,2870],{"name":2868,"color":2869},"need more info","bdbefc",{"name":2871,"color":2872},"stale","ededed",3292,"vuejs","vitepress","open","Theme is made into npm package, if use the theme, Symbol is duplicated in dev.","2024-03-07T11:19:22Z","https://github.com/vuejs/vitepress/issues/3292",0.74625677,{"description":2882,"labels":2883,"number":2888,"owner":2874,"repository":2875,"state":2876,"title":2889,"updated_at":2890,"url":2891,"score":2892},"As mentioned in #253, we probably should add a community examples page. Here are the things that we can add:\r\n\r\n- Markdown Extensions\r\n * Code Groups\r\n * Footnotes\r\n * Task Lists\r\n * Maths, Diagrams, Charts\r\n\r\n- SEO Improvement\r\n * Sitemaps\r\n * Meta Tags\r\n\r\n- Image Extensions\r\n * Zoom on Click\r\n * Image Gallary\r\n * Figures and Captions\r\n\r\n- Complex Use-Cases\r\n * Building PWA\r\n * CSS Isolation\r\n * Dynamic Sidebar\r\n * Multiple Bases\r\n * Offline Search\r\n * Writing Blogs\r\n * Versioning\r\n\r\n- Integration with other libraries:\r\n * TailwindCSS\r\n * Styleguidist (might be tricky)\r\n * Pinia\r\n\r\nI created this list based on popular VuePress plugins and VitePress issues. Having such a page before v1 will significantly ease up migration. If you think the list is missing something common then please comment.\r\n\r\nSome of these can be officially supported too, especially the markdown extensions.",[2884,2887],{"name":2885,"color":2886},"docs","0075ca",{"name":2871,"color":2872},883,"Add examples","2024-03-07T11:20:19Z","https://github.com/vuejs/vitepress/issues/883",0.76082987,{"description":2894,"labels":2895,"number":2900,"owner":2874,"repository":2875,"state":2876,"title":2901,"updated_at":2902,"url":2903,"score":2904},"### Describe the bug\n\nAs my title, in my project, seems it happens every single time in production. Every time trying access to an article and then this issue came up with the should-be-displayed splashed for a second.\r\n\r\n\n\n### Reproduction\n\nSeems this issue only happened in mine.\r\nIn that case, to reproduce the issue, you need to access to https://blog.gostatus.cn/categories/others/2024/08/02/doit\r\nand choose any article, and then try to refresh the page.\r\nand you can also try to copy that page's address and try to access it in a new tab.\n\n### Expected behavior\n\nThe article showed normally without a totally blank page after a splash.\r\n\n\n### System Info\n\n```Text\nvitepress \"1.3.2\",\r\ngithubpage\n```\n\n\n### Additional context\n\nI apologize if this is caused by our misoperate during configuration. Visit https://github.com/reckless-huang/blog-vite check our configuration, if someone found something miserable and do have an idea to fix this, please tell me, I will be sincerely appreciated for your help.\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.",[2896,2899],{"name":2897,"color":2898},"bug: pending triage","e99695",{"name":2871,"color":2872},4107,"Content disappeared after navigation (refresh on page or navigation accessing to page) ","2024-12-03T17:28:03Z","https://github.com/vuejs/vitepress/issues/4107",0.768339,{"description":2906,"labels":2907,"number":2908,"owner":2874,"repository":2875,"state":2909,"title":2910,"updated_at":2911,"url":2912,"score":2913},"### Is your feature request related to a problem? Please describe.\n\n当sidebar配置因为文件目录较多时,sidebar会被打包进入所有页面的HTML中,这将导致__VP_HASH_MAP__过大。\n\n### Describe the solution you'd like\n\n希望根据目录配置sidebar,打包时,仅引入目录下的sidebar配置文件,避免注入到所有页面的__VP_HASH_MAP__中\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.",[],3933,"closed","sidebar配置需要优化","2024-07-05T04:42:41Z","https://github.com/vuejs/vitepress/issues/3933",0.7373721,{"description":2915,"labels":2916,"number":2917,"owner":2874,"repository":2875,"state":2909,"title":2918,"updated_at":2919,"url":2920,"score":2921},"### Is your feature request related to a problem? Please describe.\n\nyes, sometimes code samples are too large to fit on the full screen or the size of screen the user is on\n\n### Describe the solution you'd like\n\nI'd like to allow for a button next to the copy button on code blocks that allows the user to wrap the code blocks\r\n\r\n\u003Cimg width=\"190\" alt=\"testing 2023-08-18 at 10 28 07\" src=\"https://github.com/vuejs/vitepress/assets/46639943/7e404a6c-3405-4b4c-a56a-0174c49c339f\">\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.",[],2815,"Allow wrapping of code blocks","2023-08-26T00:04:05Z","https://github.com/vuejs/vitepress/issues/2815",0.7422219,{"description":2923,"labels":2924,"number":2925,"owner":2874,"repository":2875,"state":2909,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Is your feature request related to a problem? Please describe.\n\nI have written some custom git integration stuff to detect various dates related to the files I'm serving in vitepress. Among them, it happens to not add any build time to detect the last updated date.\n\n### Describe the solution you'd like\n\nA `last-updated` preamble entry, if present, will override the `lastUpdated` configuration option and display said date/time as the last updated time.\r\n\r\nIf https://github.com/vuejs/vitepress/issues/1891 is implemented, the `created` preamble entry should be analogous to `last-updated`.\n\n### Describe alternatives you've considered\n\nNo alternatives considered.\n\n### Additional context\n\nNo additional context.\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.",[],2669,"Last updated override","2023-09-02T00:04:15Z","https://github.com/vuejs/vitepress/issues/2669",0.7441466,{"description":2931,"labels":2932,"number":2933,"owner":2874,"repository":2875,"state":2909,"title":2934,"updated_at":2935,"url":2936,"score":2937},"### Is your feature request related to a problem? Please describe.\n\n希望增加一个换算器就是类似于wetab上面的那种,功能比较多\r\n\r\n\r\n\n\n### Describe the solution you'd like\n\n希望增加一个换算器就是类似于wetab上面的那种,功能比较多 \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.",[],3670,"希望增加一个换算器","2024-04-28T12:27:43Z","https://github.com/vuejs/vitepress/issues/3670",0.749258,{"description":2939,"labels":2940,"number":2944,"owner":2874,"repository":2875,"state":2909,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Is your feature request related to a problem? Please describe.\n\n有中文文档吗\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/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2941],{"name":2942,"color":2943},"question","5D5FAE",414,"有中文文档吗","2023-01-21T16:20:24Z","https://github.com/vuejs/vitepress/issues/414",0.7502906,{"description":2950,"labels":2951,"number":2953,"owner":2874,"repository":2875,"state":2909,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\n\nRunning `npm run docs:build` results in an error when using latest (`-rc.2`) packaged version:\r\n\r\n```\r\n$ npm run docs:build\r\n\r\n> docs:build\r\n> vitepress build docs\r\n\r\n\r\n vitepress v1.0.0-rc.3\r\n\r\n✘ [ERROR] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]\r\n\r\n node_modules/esbuild/lib/main.js:1373:27:\r\n 1373 │ let result = await callback({\r\n ╵ ^\r\n\r\n at file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66190:35\r\n at requestCallbacks.on-resolve (/tmp/vpress/node_modules/esbuild/lib/main.js:1373:28)\r\n at handleRequest (/tmp/vpress/node_modules/esbuild/lib/main.js:729:19)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:755:7)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n at readableAddChunk (node:internal/streams/readable:289:9)\r\n at Socket.Readable.push (node:internal/streams/readable:228:10)\r\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)\r\n\r\n This error came from the \"onResolve\" callback registered here:\r\n\r\n node_modules/esbuild/lib/main.js:1292:20:\r\n 1292 │ let promise = setup({\r\n ╵ ^\r\n\r\n at setup (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66158:27)\r\n at handlePlugins (/tmp/vpress/node_modules/esbuild/lib/main.js:1292:21)\r\n at buildOrContextImpl (/tmp/vpress/node_modules/esbuild/lib/main.js:978:5)\r\n at Object.buildOrContext (/tmp/vpress/node_modules/esbuild/lib/main.js:786:5)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:2177:15\r\n at new Promise (\u003Canonymous>)\r\n at Object.build (/tmp/vpress/node_modules/esbuild/lib/main.js:2176:25)\r\n at build (/tmp/vpress/node_modules/esbuild/lib/main.js:2025:51)\r\n at bundleConfigFile (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66109:26)\r\n\r\n The plugin \"externalize-deps\" was triggered by this import\r\n\r\n docs/.vitepress/config.ts:1:278:\r\n 1 │ ...import_meta_url = \"file:///tmp/vpress/docs/.vitepress/config.ts\";import { defineConfig } from 'vitepress'\r\n ╵ ~~~~~~~~~~~\r\n\r\nfailed to load config from /tmp/vpress/docs/.vitepress/config.ts\r\nbuild error:\r\nError: Build failed with 1 error:\r\nnode_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.\r\n at failureErrorWithLog (/tmp/vpress/node_modules/esbuild/lib/main.js:1649:15)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1058:25\r\n at runOnEndCallbacks (/tmp/vpress/node_modules/esbuild/lib/main.js:1484:45)\r\n at buildResponseToResult (/tmp/vpress/node_modules/esbuild/lib/main.js:1056:7)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1085:16\r\n at responseCallbacks.\u003Ccomputed> (/tmp/vpress/node_modules/esbuild/lib/main.js:703:9)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:762:9)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n```\n\n### Reproduction\n\n```\r\nmkdir vpress\r\ncd vpress\r\nnpm install -D vitepress\r\nnpx vitepress init\r\n#│ ./docs\r\n#│ My Awesome Project\r\n#│ A VitePress Site\r\n#│ Default Theme\r\n#│ Yes\r\n#│ Yes\r\nnpm run docs:build\r\n```\n\n### Expected behavior\n\nBuild runs successfully.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38.20230806.0 (Silverblue)\r\n CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz\r\n Memory: 8.91 GB / 15.25 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node\r\n npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.3 => 1.0.0-rc.3\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.",[2952],{"name":2897,"color":2898},2754,"[ERROR] \"vitepress\" resolved to an ESM file.","2023-08-16T00:04:18Z","https://github.com/vuejs/vitepress/issues/2754",0.75565255,{"description":2959,"labels":2960,"number":2961,"owner":2874,"repository":2875,"state":2909,"title":2962,"updated_at":2963,"url":2964,"score":2965},"### Is your feature request related to a problem? Please describe.\n\n文章目录不显示一级标题\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.",[],3242,"文章目录不显示一级标题","2023-12-01T00:05:08Z","https://github.com/vuejs/vitepress/issues/3242",0.75976765,["Reactive",2967],{},["Set"],["ShallowReactive",2970],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fpArxkQ5tQeE8F9TJUm2RFg92DFj8khvVHS-YZ6cZ0vY":-1},"/vuejs/vitepress/2603"]