Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tslib >=2.5.1 regression - increases bundle size caused by noop `Object.create;` statements

Open
#212 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, webpack

Research direction

Start with the attached tslib-regression.zip and reproduce the bundle using TypeScript 4.7, webpack 5.83.1, and tslib 2.4.1, 2.5.0, and 2.5.3. Compare emitted bundles around the __assign helper and the repeated Object.create; statements; done means explaining the regression and verifying that the bundle-size increase is removed.

Written by the indexing model from the issue text.

Description

deps in our repo:

  • typescript 4.7
  • webpack 5.83.1
  • tslib 2.4.1

while bumping from tslib 2.4.1 to 2.5.3 our CI blocked PRs because more than 3kb Size increase in our bundled code.

I did some amount of investigation and it looks like there is increased occurrence of Object.create; statements emitted within the bundle that don't do anything . This looks like cause of __assign helper from tslib.

if we bump only to 2.5.0 the regression does not occur.

tslib-regression.zip

Dominant language
TypeScript
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/tslib

All issues in microsoft/tslib

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.