taiga-ui
taiga-ui copied to clipboard
🤖 - Improved tree shaking for production code
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
https://github.com/Tinkoff/taiga-ui/issues/999
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
https://github.com/LironEr/bundlemon