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
// This flag will be set to true when the parse encounter dynamic import so that post-parsing process of module resolution
2313
+
// will not walk the tree if the flag is not set. However, this flag is just a approximation because once it is set, the flag never get reset.
2314
+
// (hence it is named "possiblyContainDynamicImport").
2315
+
// During editing, if dynamic import is remove, incremental parsing will *NOT* update this flag. This will then causes walking of the tree during module resolution.
2316
+
// However, the removal operation should not occur often and in the case of the removal, it is likely that users will add back the import anyway.
2317
+
// The advantage of this approach is its simplicity. For the case of batch compilation, we garuntee that users won't have to pay the price of walking the tree if dynamic import isn't used.
0 commit comments