aklinker1 / vite-plugin-web-extension

Vite plugin for developing Chrome/Web Extensions
https://vite-plugin-web-extension.aklinker1.io/
MIT License
553 stars 48 forks source link

Speed up builds using rollup `cache` #39

Closed aklinker1 closed 1 year ago

aklinker1 commented 1 year ago

If we can hook into rollup's cache from vite, we could really speed up subsequent builds. I have a couple medium sized extensions, and this plugin gets really slow when building tons of different, large entrypoints.

https://rollupjs.org/guide/en/#cache

aklinker1 commented 1 year ago

Haven't had any luck accessing and shared the rollup cache between builds. But, most of the build time is the transform step, which can be cached.

aklinker1 commented 1 year ago

I can't figure out how to use rollup's cache.