We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Input:
function outer(ext) { let other = (0, () => ext); const inner = (0, () => other); const setOther = v => other = v; return { inner, other, setOther }; } const { inner, setOther } = outer(1); const { other } = outer(2); setOther(other); export default inner;
Output:
const createScopeOuter = (other, ext) => [ _other => other = _other, () => ext, () => other ], scopeOuter = createScopeOuter(); scopeOuter[0]( createScopeOuter(void 0, 2)[1] ); export default scopeOuter[2];
other from 2nd scope is injected into first scope. This is unnecessary. Output could be shorter:
other
const createScopeOuter = (other, ext) => [ () => ext, () => other ]; export default createScopeOuter( createScopeOuter(void 0, 2)[0] )[1];
This inefficient output is caused by a4c86d7 which was solution to #226.
The text was updated successfully, but these errors were encountered:
Fixing this would require a complicated analysis to detect circularity.
Two-phase serialization (as discussed in #169 (comment)) would make these cases easier to identify.
Sorry, something went wrong.
Two-phase serialization now has its own issue: #426
No branches or pull requests
Input:
Output:
other
from 2nd scope is injected into first scope. This is unnecessary. Output could be shorter:This inefficient output is caused by a4c86d7 which was solution to #226.
The text was updated successfully, but these errors were encountered: