-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
new Class
with side effects erroneously removed
#1233
Comments
Related bug: #980 |
Ideally we'd be able to determine that the function to test for side-effects is the |
The fix I suggested was a bit drastic because of the seriousness of the error. But if you want to refine it for side effects, by all means. The related bug #980 had a side effect in the super constructor. |
include new expressions where callee is a class
Even if the callee is a function we still want the |
That already happens, it's only classes that were behaving badly. About to leave my desk so will cut a release with the fix and we can address the false positives another time |
Input
$ cat new.js
Expected output
$ node new.js
rollup@0.41.0 output
$ bin/rollup new.js -f es | node
Suggested fix
Rollup output with fix
$ bin/rollup new.js -f es
$ bin/rollup new.js -f es | node
A few existing rollup tests with incorrect results would have to be updated.
The text was updated successfully, but these errors were encountered: