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

🤖 - Improved tree shaking for production code #1163

Closed
splincode opened this issue Dec 30, 2021 · 6 comments
Closed

🤖 - Improved tree shaking for production code #1163

splincode opened this issue Dec 30, 2021 · 6 comments
Assignees
Labels
P2 This issue has medium priority

Comments

@splincode
Copy link
Member

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
@waterplea waterplea added the P2 This issue has medium priority label Jan 20, 2022
@splincode
Copy link
Member Author

#999

@splincode
Copy link
Member Author

image

@splincode
Copy link
Member Author

image

image

image

@splincode
Copy link
Member Author

image

@splincode
Copy link
Member Author

@splincode splincode self-assigned this Sep 27, 2023
@splincode splincode moved this to ✅ Done in Taiga-family Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 This issue has medium priority
Development

No branches or pull requests

3 participants