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

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

Open
Hotell opened this issue Jun 22, 2023 · 0 comments

Comments

@Hotell
Copy link

Hotell commented Jun 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant