vite build
uses esbuild
to transform both the package dependencies (node modules) as well as the app source code into the target JavaScript specification, i.e. es2015
.
I observe that vite
/esbuild
re-transform the entire sources in ./node_modules
every time vite build
is run.
How can this build stack be used to keep and reuse the previously transformed files, at least for the entire ./node_modules
folder (given dependencies didn't change of course) so that subsequent vite build
command invocations run significantly faster?