You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you import a typescript type from a module, and nothing else from that module is used anywhere in an expression, typescript omits the module's code, and just imports the type, meaning the import cost of importing the type is not the cost of importing the entire module.
For example:
import{IComponentOptions}from'angular';// 168.3K
However, the import cost is really practically nothing.
This gave me a bit of a heart attack when I first installed the extension, until I figured this out. Any way to account for this?
The text was updated successfully, but these errors were encountered:
When you import a typescript type from a module, and nothing else from that module is used anywhere in an expression, typescript omits the module's code, and just imports the type, meaning the import cost of importing the type is not the cost of importing the entire module.
For example:
However, the import cost is really practically nothing.
This gave me a bit of a heart attack when I first installed the extension, until I figured this out. Any way to account for this?
The text was updated successfully, but these errors were encountered: