Skip to content

show compiled output size #850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Rich-Harris opened this issue Dec 15, 2021 · 2 comments
Open

show compiled output size #850

Rich-Harris opened this issue Dec 15, 2021 · 2 comments

Comments

@Rich-Harris
Copy link
Member

This is mostly a placeholder so that we can close sveltejs/svelte-repl#85.

It raises a lot of tricky design questions — would we need to bundle using the specified compiler options? if so is that the bundle that we run (e.g. if using ssr mode is the app non-interactive?) should we exclude external dependencies? where does the output go?

We should figure out answers to all these questions before doing any implementation work.

@pngwn
Copy link
Member

pngwn commented Dec 16, 2021

I actually did this a while ago in my own REPL and one of the problems is just how damn expensive minification is. It ended up stacking up work in the worker. Even though this didn't impact the normal functioning in the real, with a lot of edits it would leave a significant delay on the bundle size updating. In the end I did some aggressive throttling/ debouncing which kinda solved it but I didn't like it.

@benmccann benmccann transferred this issue from sveltejs/sites Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants