Skip to content
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

Optimize bundle size #249

Open
raimohanska opened this issue Mar 17, 2024 · 2 comments
Open

Optimize bundle size #249

raimohanska opened this issue Mar 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@raimohanska
Copy link
Owner

raimohanska commented Mar 17, 2024

Current (development, unminified) bundle is over 2 megabytes which may not sound much, but it's grown significantly from th 600kb it was before Quill and Y.js.

image

Made by feeding dist/***.meta.json to esbuild bundle analyzer

@raimohanska raimohanska added the enhancement New feature or request label Mar 17, 2024
@raimohanska
Copy link
Owner Author

... and here's the actual minified one (<1mb) from production...

image

@raimohanska
Copy link
Owner Author

When you stare at this, you start thinking "should we squeeze out the 77.6kb by sanitize-html" or maybe try to use some smaller distro of quill.js. Lodash is probably subotimal as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant