taiga-ui icon indicating copy to clipboard operation
taiga-ui copied to clipboard

🤖 - Improved tree shaking for production code

Open splincode opened this issue 2 years ago • 6 comments

Description

if (typeof ngDevMode === 'undefined' || ngDevMode) {
  // my code works only in dev mode
 
}

typeof ngDevMode === 'undefined' - provide by view engine || ngDevMode - provide by ivy engine

Example: https://github.com/angular/angular/pull/44219/files

Plan:

  • add size tracking on CI for demo app
  • make asserts in code as tree shakable

splincode avatar Dec 30 '21 08:12 splincode

https://github.com/Tinkoff/taiga-ui/issues/999

splincode avatar Feb 14 '22 13:02 splincode

image

splincode avatar Feb 15 '22 09:02 splincode

image

image

image

splincode avatar Feb 18 '22 08:02 splincode

https://twitter.com/dzhavatushev/status/1494724230587592705?s=20&t=YOvycKA-d72QBA5gFHcyOw

https://github.com/nrwl/nx/blob/master/packages/eslint-plugin-nx/src/rules/enforce-module-boundaries.ts#L103

splincode avatar Feb 18 '22 20:02 splincode

image

splincode avatar Jul 05 '22 21:07 splincode

https://github.com/LironEr/bundlemon

splincode avatar Aug 12 '22 15:08 splincode