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
We have unfinished generator function with unused variables:
function* updateTemplate() { try { while(true) { const { type, userId } = yield take(actions.UPDATE_TEMPLATE); const { response, error } = yield call(postTemplate, 'update', userId); } } catch(e) { if (e.name !== 'SagaCancellationException') { console.log(e); } } }
Which was transformed into this with babili options { mangle: false }:
function*updateTemplate(){try{for(;;)const{type,userId}=yield(0,_effects.take)(actions.UPDATE_TEMPLATE),{response,error}=yield(0,_effects.call)(postTemplate,'update',userId)}catch(e){'SagaCancellationException'!==e.name&&console.log(e)}}
For loop scope curly brackets was removed and we getting node.js error: SyntaxError: Unexpected token const
The text was updated successfully, but these errors were encountered:
Added { mergeVars: false } to babili option as temporary solution.
Sorry, something went wrong.
bug in simplify plugin
Fix block removal during early continue transform
52a0707
+ Fix #560
Fix block removal during early continue transform (#623)
8c7b973
* Fix block removal during early continue transform + Fix #560 * Fix test suite
No branches or pull requests
We have unfinished generator function with unused variables:
Which was transformed into this with babili options { mangle: false }:
function*updateTemplate(){try{for(;;)const{type,userId}=yield(0,_effects.take)(actions.UPDATE_TEMPLATE),{response,error}=yield(0,_effects.call)(postTemplate,'update',userId)}catch(e){'SagaCancellationException'!==e.name&&console.log(e)}}
For loop scope curly brackets was removed and we getting node.js error:
SyntaxError: Unexpected token const
The text was updated successfully, but these errors were encountered: