sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7k stars 434 forks source link

When getTimings is exposed from rollup output the info. #1685

Closed samccone closed 3 years ago

samccone commented 3 years ago

getTimings is exposed from rollup when perf: true is set in the rollup config https://github.com/rollup/rollup/pull/2065/commits/6913e396544a8976cf18dd3392dccf4a2c5b697c . Previously there was no way to get this information from a customer's perspective when using sapper in development mode or when building via sapper build. This meant that if a customer wanted to understand why their build was slow they had not clear path forward.

With this change, setting perf: true in the rollup config will now display this information to the command line when running sapper dev and sapper build