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

Bundle size reduction 🤰 #16

Open
1 of 3 tasks
danielwerg opened this issue Aug 17, 2023 · 0 comments
Open
1 of 3 tasks

Bundle size reduction 🤰 #16

danielwerg opened this issue Aug 17, 2023 · 0 comments
Assignees
Labels
help Extra attention is needed type: feature New feature or request

Comments

@danielwerg
Copy link
Owner

danielwerg commented Aug 17, 2023

Feature

Importing OPERATORS will cost your project around 1MB if not more, this could be reduced by ~60% if we load svgs and notes on demand. There several projects I work on where I never use operator notes anyway, and for svgs, although they are almost always used there are still things like chat bots where you are forced to use raster images.

Ideal solution or implementation

  • Import operators individually
  • Import svgs and operator notes on demand
  • Make cheerio a devDependency by transforming svgs on build step

Alternative solutions or implementations

No response

Other context

No response

@danielwerg danielwerg added the type: feature New feature or request label Aug 17, 2023
@danielwerg danielwerg added the help Extra attention is needed label Sep 19, 2023
@danielwerg danielwerg self-assigned this Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Extra attention is needed type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant