tslib >=2.5.1 regression - increases bundle size caused by noop `Object.create;` statements
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
- Domain
- build-system, performance
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.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tslib
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
-
question
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
bug DUP Reservations
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
bcgov/reserve-rec-public#952 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
daufderheide/racecoordinator_ai#948 ·
Maintainers usually reply within 1 day
-
Bug pulumi/pulumi
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
api bug claude
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
diegosouzapw/OmniRoute#15764 ·
Maintainers usually reply within 2 days