-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ES6 - assignments to exported members #1543
Comments
There will probably be a long tail of things that no longer work because they rely on reassignment. There are a few global settings on the dc namespace. We might have to make these into global setters. Not sure what to do about spies. |
My thinking is not firmed yet. However my current thinking is like the following:
However before this we will need to discuss how much refactoring and breakage of existing API is acceptable. |
As of now commented out these 3 specs via b741b1a |
I have been reading about ES6 and tree shaking. It seems a proper structure would be like following:
|
Seems like there needs to be a third level: look for config
Or does the third one violate "No mutable state should be a top level exported symbol"? I hope not, since it would be handy. I guess if all else fails we could make |
Probably would not want to cascade individual settings, just look for a config object at each level, which will have some value for every setting. |
Makes sense. |
I think we can close this task for this version. More changes than the current state would cause interface breakage. |
Agreed. I looked over Removing the spies on |
spies removed in 78b4c13 |
Ref #1520
Rollup generated js does not allow reassigning any exported members. Currently test cases fail that use reassigning:
The text was updated successfully, but these errors were encountered: