Closed TrySound closed 6 years ago
In this diff I combined rollup configs to reduce node and rollup load time. It is saved half of build time (7-8s to 3.5s for me).
Added size snapshot plugin to track the size across any commit. This increased a bit build time to ~5s. So we still win here.
Removed replace plugin which does not affect existing code.
replace
Reused main field from package.json in rollup config.
main
Thanks! I suppose we can also remove rollup-plugin-node-resolve.
rollup-plugin-node-resolve
Good catch!
Done
In this diff I combined rollup configs to reduce node and rollup load time. It is saved half of build time (7-8s to 3.5s for me).
Added size snapshot plugin to track the size across any commit. This increased a bit build time to ~5s. So we still win here.
Removed
replace
plugin which does not affect existing code.Reused
main
field from package.json in rollup config.