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
If you change this to *foo (still a generator function), or a non-generator with a static identifier as a name, it is tree-shaken. I believe this should be safe to tree shake with Symbol.iterator as well. SWC's minifier does so.
The text was updated successfully, but these errors were encountered:
When a class includes an iterator method using
Symbol.iterator
, it is no longer tree-shaken when unused.Example
If you change this to
*foo
(still a generator function), or a non-generator with a static identifier as a name, it is tree-shaken. I believe this should be safe to tree shake withSymbol.iterator
as well. SWC's minifier does so.The text was updated successfully, but these errors were encountered: