I'd like to investigate some potential options for speeding up builds. With lots of entrypoints, projects can take quite a long time to build.
I believe Nuxt caches parts of the build process, perhaps we could learn from them?
Parallel builds? v1 did this, but it lead to high memory consumption, so I'd like to stay away from this.
I need to profile an extension with a lot of entrypoints to see what steps of the build are taking a long time? Off the top of my head, the transform step seems to take the longest... We don't need to transform the same files and dependencies multiple times, can we cache that somehow?
There doesn't appear to be any way to use Vite to improve caching. The only option is to cache the outputs manually inside a folder like node_modules/.vite-plugin-web-extension/cache
Summary
I'd like to investigate some potential options for speeding up builds. With lots of entrypoints, projects can take quite a long time to build.
transform
step seems to take the longest... We don't need to transform the same files and dependencies multiple times, can we cache that somehow?Is your feature request related to a bug/issue?
No
Additional Context
Spiritual successor to #39