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 having a function that calls itself, it is not removed by tree-shaking. Seems this happens because the Node gets activated, at least that's were I ended debugging.
I can help to fix it, but I'm not sure where to start. I debugged a testcase with this input-code, but I'm not sure where the whole activation happens, and how the Node could detect that it got activated by itself.
The text was updated successfully, but these errors were encountered:
When having a function that calls itself, it is not removed by tree-shaking. Seems this happens because the Node gets
activated
, at least that's were I ended debugging.Input
Expected output
Current output
Example
http://rollupjs.org/?version=0.37.0&shareable=JTdCJTIyb3B0aW9ucyUyMiUzQSU3QiUyMmZvcm1hdCUyMiUzQSUyMmNqcyUyMiUyQyUyMm1vZHVsZU5hbWUlMjIlM0ElMjJteUJ1bmRsZSUyMiUyQyUyMmdsb2JhbHMlMjIlM0ElN0IlN0QlN0QlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIybmFtZSUyMiUzQSUyMm1haW4uanMlMjIlMkMlMjJjb2RlJTIyJTNBJTIydmFyJTIwc2V0JTIwJTNEJTIwZnVuY3Rpb24lMjBzZXQob2JqZWN0KSUyMCU3QiU1Q24lMjAlMjAlMjBvYmplY3QudmFsdWUlMjAlM0QlMjB2YWx1ZSUzQiU1Q24lNUNuJTIwJTIwJTIwc2V0KE9iamVjdC5nZXRQcm90b3R5cGVPZihvYmplY3QpKSUzQiU1Q24lN0QlM0IlMjIlN0QlNUQlN0Q=
Environment
rollup: 0.37
node: 6.9.1
os: macOS 10.11
I can help to fix it, but I'm not sure where to start. I debugged a testcase with this input-code, but I'm not sure where the whole activation happens, and how the Node could detect that it got activated by itself.
The text was updated successfully, but these errors were encountered: