tslib icon indicating copy to clipboard operation
tslib copied to clipboard

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

Open Hotell opened this issue 2 years ago • 0 comments

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

Hotell avatar Jun 22 '23 15:06 Hotell