\r\n\r\nIt is inevitable to use `document` in `vitepress` many times, but how to avoid the packaging error when` vitepress` uses the server-side rendering method?\r\n\r\nAre there any third-party plug-in recommendations or configuration items?\n\n### Reproduction\n\n```vue\r\n\u003Cscript setup>\r\n console.log(document)\r\n\u003C/script>\r\n```\r\n\r\n\r\n\n\n### Expected behavior\n\nBuild ok\n\n### System Info\n\n```shell\n\"vitepress\": \"^1.0.0-alpha.4\",\r\n\"vue\": \"^3.2.33\"\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.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2931],{"name":2932,"color":2933},"question","5D5FAE",1120,"document is not defined","2023-01-21T14:28:51Z","https://github.com/vuejs/vitepress/issues/1120",0.6910515,{"description":2940,"labels":2941,"number":1909,"owner":2869,"repository":2870,"state":2871,"title":2943,"updated_at":2944,"url":2945,"score":2946},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n\r\n1. Add frontmatter to index.md\r\n\r\n```\r\n---\r\ntitle: My Docs Site\r\n---\r\n\r\n# {{ $frontmatter.title }}\r\n```\r\n\r\nThis does not render as expected.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\n**System Info**\r\n- vitepress version: v0.4.0\r\n- vite version: v1.0.0-beta.1\r\n- Node version: v12.16.1\r\n- OS version: macOS 10.15.5\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n",[2942],{"name":2866,"color":2867},"Frontmatter is not accessible in markdown","2023-01-21T16:25:39Z","https://github.com/vuejs/vitepress/issues/31",0.6922465,{"description":2948,"labels":2949,"number":2951,"owner":2869,"repository":2870,"state":2871,"title":2952,"updated_at":2944,"url":2953,"score":2954},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nThe SideBar.js and NavBar.js components still reference `__DEV__` and should be replaced with `import.meta.env.DEV` to work with 0.4.0\r\n\r\n**To Reproduce**\r\nUse the default theme with 0.4.0\r\n\r\n**Expected behavior**\r\nNavBar and SideBar should not throw __DEV__ not defined errors\r\n\r\n**System Info**\r\n- vitepress version: 0.4.0\r\n- vite version: v1.0.0-beta.2\r\n- Node version:\r\n- OS version:\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n",[2950],{"name":2866,"color":2867},28,"Sidebar Navbar break on 0.4.0","https://github.com/vuejs/vitepress/issues/28",0.6940091,["Reactive",2956],{},["Set"],["ShallowReactive",2959],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4KN_QPw3lFum2sJg3IFhwhkgkqnvYYofnXesx52IyZU":-1},"/vuejs/vitepress/53"]