Skip to content

Reduce extension package size #2156

@kidonng

Description

@kidonng

GitLens is a very popular extension, which means every small improvement it makes results in huge gains. It is also a very large extension, both in scale and disk usage. I think we can do better in the latter.

The latest version (12.1.2) of GitLens is 11M when packed up, and 22.3M when unpacked.

  • With images/docs ignored, package size goes down to 7.3M.

    They are mostly used in walkthroughs, so changing the relative paths to GitHub links should be able to free the images from the package.

  • With dist/**.map ignored, package size goes down to 9.1M.

    Sourcemaps are uncommon and less useful in Node programs, especially for end users. It is more suitable to keep them out of the final package.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions