'\r\n const target = `\u003Cdiv id=\"app\">\u003C/div>`\r\n this.shadow = this.attachShadow({ mode: 'open' })\r\n this.shadow.innerHTML = designSystemCSS + target\r\n createApp(App) // App defined elsewhere ofc\r\n .mount(this.shadow.querySelector('#app'))\r\n }\r\n}\r\n```\n\n### Describe the solution you'd like\n\nProbably just being able to set `compilerOptions.isCustomElement` somewhere would be good enough?\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.vuejs.org).\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.",[],735,"Custom element support","2023-01-21T14:34:18Z","https://github.com/vuejs/vitepress/issues/735",0.68138504,{"description":2902,"labels":2903,"number":2904,"owner":2856,"repository":2857,"state":2858,"title":2905,"updated_at":2906,"url":2907,"score":2908},"### Is your feature request related to a problem? Please describe.\r\n\r\nMake configuration easier.\r\n\r\n### Describe the solution you'd like\r\n\r\nSame as [vite](https://vitejs.dev/config/#config-intellisense) :\r\n\r\n```ts\r\nimport { defineConfig } from 'vitepress'\r\n\r\nexport default defineConfig({\r\n lang: 'en-US',\r\n // ...\r\n}) \r\n``` \r\n\r\nBut we need to improve the support for theme config:\r\n\r\nBy default, `defineConfig` helper leverages the theme config type from default theme:\r\n\r\n```js\r\nimport { defineConfig } from 'vitepress'\r\n\r\nexport default defineConfig({\r\n themeConfig: {\r\n // Type is `DefaultTheme.Config` \r\n }\r\n})\r\n```\r\n\r\nIf you use a custom theme, you'll be able to pass the generics type for your custom theme, and you need overload it with the second parameter of `defineConfig` helper:\r\n\r\n```js\r\nimport { defineConfig } from 'vitepress'\r\nimport { ThemeConfig } from 'your-theme'\r\n\r\nexport default defineConfig\u003CThemeConfig>({\r\n themeConfig: {\r\n // Type is `ThemeConfig` \r\n }\r\n}, true); // declare `usingCustomTheme` and discard usage of the default theme.\r\n```\r\n\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\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/coc)\r\n- [X] Read the [docs](https://vitepress.vuejs.org/).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],464,"[Feature Request] Improve TypeScript support for config file.","2023-01-21T16:20:21Z","https://github.com/vuejs/vitepress/issues/464",0.68141365,{"description":2910,"labels":2911,"number":2912,"owner":2856,"repository":2857,"state":2858,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### Is your feature request related to a problem? Please describe.\n\n## Adding Static Resources config\r\nWhen I use **vitepress** with external css files e.g. `element-plus.css`. I found that the only way to import the css file is via JavaScript. You can't actually add it in the rendered template `head` tag. So I wonder is it possible to expose a config field for importing external resources via `CDN`\r\n\r\n## Benefits\r\n\r\nWhen using external resources this way we could potentially benefit from using CDN.\n\n### Describe the solution you'd like\n\n### Exposing a field named `externals` or `resources` with type:\r\n\r\n```typescript\r\ntype Resource = {\r\n type: 'script' | 'link',\r\n target: 'url_to_resource',\r\n async: boolean // or defer?\r\n}\r\n\r\ntype Resources = Resource[]\r\n```\r\n\r\n### When rendering\r\n\r\nAdd co-responding HTML tag into the `head` tag for external links.\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.",[],375,"[Feature Request] Adding config for external resources","2023-01-21T16:22:09Z","https://github.com/vuejs/vitepress/issues/375",0.6826298,{"description":2918,"labels":2919,"number":2920,"owner":2856,"repository":2857,"state":2858,"title":2921,"updated_at":2922,"url":2923,"score":2924},"**Is your feature request related to a problem? Please describe.**\r\n\r\nin VuePress we can pass `configureWebpack` to the vuepress config to modify webpack behaviour. useful to add module resolve and aliases, plugins etc.\r\n\r\nhttps://vuepress.vuejs.org/config/#configurewebpack\r\n\r\n**Describe the solution you'd like**\r\n\r\nAllow to do the same (or similar) with vitepress\r\n\r\n**Describe alternatives you've considered**\r\n\r\nanything that'll result in the same behavior\r\n\r\n",[],179,"configureWebpack in vitepress config","2023-01-21T16:24:09Z","https://github.com/vuejs/vitepress/issues/179",0.69198275,{"description":2926,"labels":2927,"number":2932,"owner":2856,"repository":2857,"state":2858,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Is your feature request related to a problem? Please describe.\n\nuse \r\n`\r\n\u003C\u003C\u003C @/../../ code_project/example/views/xxx/xx.vue\r\n`\r\nImport code snippet,Can customize @ path,\r\n\r\n\r\nthank you very much indeed\r\n\r\n\n\n### Describe the solution you'd like\n\n`\r\n\r\nimport { defineConfig } from 'vitepress';\r\nimport { fileURLToPath } from 'url';\r\nimport { dirname, resolve } from 'path';\r\nconst vitepressDir = dirname(fileURLToPath(import.meta.url));\r\nexport default defineConfig({\r\n vite: {\r\n resolve: {\r\n // Can it be defined here ??? \r\n alias: {\r\n '@codePath': resolve(vitepressDir, '../../../code_project/example/views/')\r\n }\r\n }\r\n }\r\n});\r\n`\r\nWhen in use\r\n`\r\n\u003C\u003C\u003C @codePath/xxx/xx.vue\r\n`\r\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.vuejs.org).\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.",[2928,2931],{"name":2929,"color":2930},"build","377ba8",{"name":2886,"color":2887},1698,"Allow customizing root for importing snippets","2023-08-12T00:04:20Z","https://github.com/vuejs/vitepress/issues/1698",0.698851,{"description":2938,"labels":2939,"number":2940,"owner":2856,"repository":2857,"state":2858,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Is your feature request related to a problem? Please describe.\n\n无\n\n### Describe the solution you'd like\n\n新的vue组件库是基于vue2.7写的,使用vitepress搭过自己的博客觉得很舒服,希望vitepress支持下vue2.7版本,这样整个生态就比较舒服\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.vuejs.org).\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.",[],1514,"vitepress可以支持vue2.7","2023-01-21T14:23:08Z","https://github.com/vuejs/vitepress/issues/1514",0.6994266,["Reactive",2946],{},["Set"],["ShallowReactive",2949],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f7fqUZoDZjjcj702iMHfaWGF59QvcbwR99hlg3rNjEOE":-1},"/vuejs/vitepress/1246"]