Skip to content

Bundle size reduction 🤰 #16

@danielwerg

Description

@danielwerg

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

Metadata

Metadata

Assignees

Labels

helpExtra attention is neededtype: featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions