\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.68480587,{"description":2935,"labels":2936,"number":2940,"owner":2871,"repository":2872,"state":2873,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Describe the bug\n\nI've built a fairly comprehensive blog theme for my use. \r\n\r\nhttps://github.com/jcamp-code/vitepress-blog-theme\r\nhttps://vitepress-blog.netlify.app/blog/\r\n\r\nIt extends the default theme by using the slots and built in features of VitePress. As you can see from the demo, it works just fine. I was hoping to package it up and be able to use it across a few sites so that I could make updates in one place and just update the package of my sites.\r\n\r\nHowever, when I try that, the new site throws \r\n\r\n```\r\nUnknown file extension \".css\"\r\nUnknown file extension \".vue\"\r\n```\r\n\r\nIt's not processing these files from the package correctly\n\n### Reproduction\n\nhttps://github.com/jcamp-code/starter-vitepress-blog\n\n### Expected behavior\n\nWould like VitePress to properly pull in Vue and CSS files from packages\n\n### System Info\n\n```shell\nNA\n```\n\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2937],{"name":2938,"color":2939},"build","377ba8",2242,"data loader files from package not working in dev","2023-05-02T00:04:02Z","https://github.com/vuejs/vitepress/issues/2242",0.6853208,{"description":2946,"labels":2947,"number":2949,"owner":2871,"repository":2872,"state":2873,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### Describe the bug\r\n\r\nI wrote a custom VitePress theme with UnoCSS, and I tried to import the theme from another project.\r\n\r\nBut after imported, the dev server failed to render the page and reported \r\n\r\n```\r\n[plugin:vite:import-analysis] Failed to resolve import \"virtual:uno.css\" from \"../theme/.vitepress/theme/index.js\". Does the file exist?\r\n/home/projects/stackblitz-starters-9izmbf/theme/.vitepress/theme/index.js:3:9\r\n1 | // https://vitepress.dev/guide/custom-theme\r\n2 | import Layout from './Layout.vue';\r\n3 | import 'virtual:uno.css';\r\n | ^\r\n4 | \r\n5 | export default {\r\n```\r\n\r\nI'm not sure which part of it is wrong. I don't even know if this is a VitePress bug. Please check the Stackblitz repro below.\r\n\r\n### Reproduction\r\n\r\nThis StackBlitz project reproduces the bug. BTW, the start script might execute very slowly.\r\n\r\nhttps://stackblitz.com/edit/stackblitz-starters-9izmbf?file=readme.md\r\n\r\n### Expected behavior\r\n\r\nThe test project in the above StackBlitz repro with external theme to work normally without additional configuration.\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 16.20.0 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.4.2 - /usr/local/bin/npm\r\n pnpm: 8.6.10 - /usr/local/bin/pnpm\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.",[2948],{"name":2882,"color":2883},2845,"Cannot use external theme with UnoCSS","2023-09-01T00:04:32Z","https://github.com/vuejs/vitepress/issues/2845",0.6861407,{"description":2955,"labels":2956,"number":2958,"owner":2871,"repository":2872,"state":2873,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\r\n\r\n>If the css logo of my css code block is uppercase (CSS) like the following\r\n\r\n>\\```CSS\r\n>p{}\r\n>\\```\r\n\r\n* When building it produces an error like this:`[vitepress] No language registration for CSS`\r\n\r\n### Reproduction\r\n\r\n`pnpm build`-->cause an error,\r\n`pnpm dev`-->and the preview also creates problems\r\n\r\n### Expected behavior\r\n\r\nCase insensitive on code block identifiers\r\n\r\n### System Info\r\n\r\n```shell\r\n[vite] Internal server error: No language registration for CSS\r\n Plugin: vitepress\r\n File: E:/Project/CSS/blog-css/docs/css布局/grid.md\r\n at getGrammar (E:\\Project\\CSS\\blog-css\\node_modules\\.pnpm\\shiki@0.10.1\\node_modules\\shiki\\dist\\index.js:2175:19)\r\n at codeToThemedTokens (E:\\Project\\CSS\\blog-css\\node_modules\\.pnpm\\shiki@0.10.1\\node_modules\\shiki\\dist\\index.js:2184:30)\r\n at Object.codeToHtml (E:\\Project\\CSS\\blog-css\\node_modules\\.pnpm\\shiki@0.10.1\\node_modules\\shiki\\dist\\index.js:2201:24)\r\n at Object.highlight (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:31999:26) \r\n at default_rules.fence (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:25746:27) \r\n at md.renderer.rules.fence (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:32339:16)\r\n at md.renderer.rules.fence (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:32828:21)\r\n at Object.md.renderer.rules.fence (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:32803:12)\r\n at Renderer$1.render (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:26025:38) \r\n at MarkdownIt.render (file:///E:/Project/CSS/blog-css/node_modules/.pnpm/vitepress@1.0.0-alpha.1/node_modules/vitepress/dist/node/serve-e8d58be3.js:31950:24)\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] 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.",[2957],{"name":2882,"color":2883},772,"No language registration for CSS","2023-01-21T14:34:15Z","https://github.com/vuejs/vitepress/issues/772",0.6889788,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fgOo3LOoLFZKQ5x-vBA-Y5Rm8VXrCGHBMLs5jxTXJPBI":-1},"/vuejs/vitepress/3050"]