\r\n\u003C/template>\r\n\r\n\u003Cscript setup>\r\n// import { useRoute } from \"vitepress\";\r\n// const route = useRoute();\r\n\u003C/script>\r\n```\r\n\r\n3. Create `docs/.vitepress/theme/index.js` with the following contents:\r\n\r\n```js\r\nimport Layout from \"./Layout.vue\";\r\n\r\nexport default {\r\n Layout,\r\n};\r\n```\r\n\r\n4. Run `yarn docs:dev` and open http://localhost:3000. Note the heading doesn't have any styles applied to it:\r\n\r\n\r\n\r\n5. Uncomment the lines in the `\u003Cscript setup>` section in `docs/.vitepress/theme/Layout.vue`. Note the heading now has the default styles applied to it, even though we only imported `useRoute`:\r\n\r\n\r\n\r\n**Expected behavior**\r\nThe heading should remain unstyled since we aren't explicitly importing any styles.\r\n\r\n**System Info**\r\n- vitepress version: v0.9.2\r\n- vite version: v1.0.0-rc.13\r\n- Node version: v12.20.0\r\n- OS version: macOS Catalina 10.15.7\r\n\r\n**Additional context**\r\nI had a quick look at the Vitepress code and it looks like the problem might be to do with this line: https://github.com/vuejs/vitepress/blob/309aa7a8d0e7ab08c1c9db258c74709a66b295cb/src/client/app/exports.ts#L29\r\n\r\nAdding the following to `docs/.vitepress/config.js`:\r\n\r\n```javascript\r\nmodule.exports = {\r\n alias: {\r\n \"/@default-theme/index\": \"/@theme/empty.js\",\r\n },\r\n};\r\n```\r\n\r\n...and creating an empty file `docs/.vitepress/theme/empty.js` prevents the default styles being applied.\r\n",[],182,"Importing default composables also imports default theme's styles","2023-01-21T16:23:59Z","https://github.com/vuejs/vitepress/issues/182",0.7275344,{"description":2949,"labels":2950,"number":2951,"owner":2872,"repository":2873,"state":2898,"title":2952,"updated_at":2953,"url":2954,"score":2955},"### Is your feature request related to a problem? Please describe.\n\n需要自定义AI搜索引擎比如https://metaso.cn/?q=%s \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.",[],4550,"搜索引擎自定义只能一个,且无法命名","2025-02-16T04:42:55Z","https://github.com/vuejs/vitepress/issues/4550",0.72780645,{"description":2957,"labels":2958,"number":2960,"owner":2872,"repository":2873,"state":2898,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\n\n\nWhen trying to run VitePress with Bun, getting the following error:\n```typescript\nTypeError: crypto$2.getRandomValues is not a function\n```\n\nThis error occurs when trying to run VitePress commands (dev/build/preview) using Bun as the runtime.\n\n\n\n\n\n### Reproduction\n\n1. Create a new project:\n```bash\nmkdir vitepress-issue\ncd vitepress-issue\nbun init\n```\n\n2. Install VitePress:\n```bash\nbun add -D vitepress\n```\n\n3. Add scripts to package.json:\n```json\n{\n \"scripts\": {\n \"docs:dev\": \"vitepress dev\",\n \"docs:build\": \"vitepress build\",\n \"docs:preview\": \"vitepress preview\"\n }\n}\n```\n\n4. Try to run with Bun:\n```bash\nbun run docs:dev\n```\n\n### Expected behavior\n\nVitePress should work with Bun as it's becoming a popular alternative to Node.js, especially given that Bun aims to be a drop-in replacement for Node.js.\n\n### System Info\n\n```Text\nSystem:\n OS: macOS 15.3.1\n CPU: (8) arm64 Apple M1 Pro\n Memory: 65.00 MB / 16.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 16.20.2 - ~/Library/Caches/fnm_multishells/94192_1745328290917/bin/node\n Yarn: 1.22.22 - ~/Library/Caches/fnm_multishells/94192_1745328290917/bin/yarn\n npm: 8.19.4 - ~/Library/Caches/fnm_multishells/94192_1745328290917/bin/npm\n bun: 1.2.2 - ~/.bun/bin/bun\n Browsers:\n Safari: 18.3\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\n## Workarounds\n\nUse Node.js instead of Bun by modifying the scripts in package.json:\n```json\n{\n \"scripts\": {\n \"docs:dev\": \"NODE_OPTIONS='--no-warnings' node ./node_modules/.bin/vitepress dev\",\n \"docs:build\": \"NODE_OPTIONS='--no-warnings' node ./node_modules/.bin/vitepress build\",\n \"docs:preview\": \"NODE_OPTIONS='--no-warnings' node ./node_modules/.bin/vitepress preview\"\n }\n}\n```\n\n\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.",[2959],{"name":2895,"color":2896},4711,"[Bug] crypto.getRandomValues not supported when running VitePress with Bun","2025-04-22T15:27:56Z","https://github.com/vuejs/vitepress/issues/4711",0.7286113,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fNCkO7cMGvgD4HqvfxXLFzRx3o1OnAdeDSpHSliso2pI":-1},"/vuejs/vitepress/4549"]