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
What are the thoughts of transforming iife to iiafe? (immediately invoked arrow function expressions)?
(function () { /* ... */ })(); // or (function () { /* ... */ }());
(_=>{/*...*/})()
The text was updated successfully, but these errors were encountered:
What about just a block?
{/*...*/}
Sorry, something went wrong.
Transforming iifes into a simple block would work for iife at top level, without any arguments.
But a little trickier otherwise, I think(?).
let dynamicClass = (function ($) { function MyClass() {} MyClass.$ = $ return MyClass })(jQuery)
which now transform to:
let dynamicClass=function(a){function b(){}return b.$=a,b}(jQuery);
With an iiafe:
let dynamicClass=(a=>{function b(){}return b.$=a,b})(jQuery);
This has already been brought up. There is an issue for that already - #428 . Closing this and tracking it there.
No branches or pull requests
What are the thoughts of transforming iife to iiafe? (immediately invoked arrow function expressions)?
Input Code
Transformed Code
The text was updated successfully, but these errors were encountered: