vuepress
vuepress copied to clipboard
`resolveSidebarItems` made build time 10x slower
- [x] I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/util/index.js#L117-L148
What is expected?
✨ Done in 663.68s.
What is actually happening?
when with sidebar: ✨ Done in 3719.38s.
built time over 1 hour.
use default theme like: https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/layouts/Layout.vue#L97-L102
Other relevant information
- Output of
npx vuepress infoin my VuePress project:
Environment Info:
System:
OS: macOS 12.4
CPU: (10) arm64 Apple M1 Max
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn
npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
Browsers:
Chrome: Not Found
Edge: Not Found
Firefox: Not Found
Safari: 15.5
npmPackages:
@vuepress/core: 1.9.7
@vuepress/theme-default: 1.9.7
vuepress: ^1.9.7 => 1.9.7
npmGlobalPackages:
vuepress: Not Found