\r\n\r\nThis requires use of vue/dist/vue.esm-bundler.js.\r\n\r\nThe application itself works with the following alias in the vite.config.ts file: \r\n```\r\nexport default defineConfig({\r\n plugins: [vue()],\r\n define: {\r\n global: {},\r\n },\r\n resolve: {\r\n alias: {\r\n \"@\": fileURLToPath(new URL(\"./src\", import.meta.url)),\r\n 'vue': 'vue/dist/vue.esm-bundler.js',\r\n './runtimeConfig': './runtimeConfig.browser',\r\n },\r\n },\r\n});\r\n````\r\n\r\nHowever, the vitepress documentation does not. I have added the same alias to the vitepress configuration file:\r\n```\r\nconst path = require('path')\r\nmodule.exports = {\r\n title: '',\r\n description: '',\r\n themeConfig: {\r\n repo: '',\r\n sidebar: [\r\n {\r\n text: 'Introduction',\r\n items: [\r\n { text: 'What is My Lib?', link: '/' },\r\n ],\r\n }, {\r\n text: 'Components',\r\n items: [\r\n { text: 'B-Markdown', link: '/components/b-markdown/desc' },\r\n ],\r\n }\r\n ],\r\n },\r\n vite: {\r\n resolve: {\r\n alias: {\r\n 'vue': 'vue/dist/vue.esm-bundler.js'\r\n }\r\n },\r\n }\r\n}\r\n\r\n```\r\n\r\nThe dynamic component does not display and a vue warning is generated suggesting that I add the alias to the bundler:\r\n```\r\nruntime-core.esm-bundler.js:38 [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\". \r\n at \u003CAnonymous content=\"Test content.\" imgFolder=\"\" class=\"toastui-editor-contents\" ... > \r\n at \u003CVRuntimeTemplate class=\"toastui-editor-contents\" style= {max-width: '900px', margin: 'auto'} template=\"\u003Cdiv>\u003Cp>Test content.\u003C/p>\\n\u003C/div>\" > \r\n at \u003CBMarkdown content=\"Test content.\" > \r\n at \u003CBasic> \r\n at \u003CDemoContainer> \r\n at \u003CComponents/bMarkdown/desc.md> \r\n at \u003CVitePressContent class=\"vp-doc _components_b-markdown_desc\" > \r\n at \u003CVPDoc key=3 > \r\n at \u003CVPContent> \r\n at \u003CLayout> \r\n at \u003CVitePressApp>\r\n\r\n\r\n```\r\n\r\n\r\n### Reproduction\r\n\r\n1. Create a dynamic component using vue3-runtime-template.\r\n2. Add the dynamic component to a vitepress documentation page.\r\n3. Attempt to view the documentation page.\r\n\r\n### Expected behavior\r\n\r\nExpect to see the dynamic component (which works in the vite application but not in the vitepress documentation).\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 5.4 Ubuntu 20.04.4 LTS (Focal Fossa)\r\n CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor\r\n Memory: 1.45 GB / 15.59 GB\r\n Container: Yes\r\n Shell: 5.0.17 - /bin/bash\r\n Binaries:\r\n Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node\r\n npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4\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.",[2956],{"name":2946,"color":2947},1065,"Alias Vue in config.js not working","2023-03-18T00:04:23Z","https://github.com/vuejs/vitepress/issues/1065",0.80624133,["Reactive",2963],{},["Set"],["ShallowReactive",2966],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkpgN_ZmfKepu9k30KD6OUSUq-hg5RS6u0-PwjW5u-N4":-1},"/vuejs/vitepress/760"]