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
Current serialization of functions with circular references is very verbose:
Input:
export default function f() {} f.bound = f.bind({});
Serialized output:
const bindingBound_f = (() => { let bound; return [ (...vars) => bound(...vars), _bound => bound = _bound ]; })(), Object$0 = Object, f = Object$0.assign( function f() {}, { bound: Object$0.defineProperties( bindingBound_f[0], {name: {value: "bound f"}} ) } ); bindingBound_f[1](f.bind({})); export default f;
This works, but could be a great deal shorter. Output should be identical to the input.
The text was updated successfully, but these errors were encountered:
This will be easier to solve once two-phase serialization is implemented (#426).
Sorry, something went wrong.
No branches or pull requests
Current serialization of functions with circular references is very verbose:
Input:
Serialized output:
This works, but could be a great deal shorter. Output should be identical to the input.
The text was updated successfully, but these errors were encountered: