core
core copied to clipboard
[Bug report]: build with vite mode parallel with cause error
Description
Background
Maybe it's look likes a bug. Refer nonzzz/vite-compression-plugin#18
I try to change vuepress it's vite build logic ( from parallel to serial. It works well
Form rollup/rollup#3506 i think we shouldn't parallel run vite build :)
Reproduction
https://github.com/u2sb/www.u2sb.com/tree/vite-compression-plugin
Used Package Manager
pnpm
System Info
$ vuepress build docs --clean-cache --clean-temp
✔ Cleaning temp - done in 20ms
✔ Cleaning cache - done in 2ms
✔ Initializing and preparing data - done in 3.45s
⠹ Compiling with vite
(!) Some chunks are larger than 1024 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✖ Compiling with vite - failed in 74.95s
Error: ENOENT: no such file or directory, open 'D:\githubDownLoad\www.u2sb.com\docs\.vuepress\.temp\.server\assets\app-77c74ba0.js'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.