Skip to content

Babel compact mode is broken when used with dprint #16474

Discussion options

You must be logged in to vote

This is a dprint bug. In your test Babel generates this code:

if(isPresent2){if(initial&&animateConfig){runEffectAnimation(animateConfig,effect,shouldReduceMotion,ref,appearId);}}else{if(exit){runEffectAnimation(exit,effect,shouldReduceMotion,ref,appearId).then(()=>safeToRemove());}else{safeToRemove();}}

And then dprint removes the braces.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@remorses
Comment options

@remorses
Comment options

@remorses
Comment options

Comment options

You must be logged in to vote
3 replies
@nicolo-ribaudo
Comment options

Answer selected by remorses
@nicolo-ribaudo
Comment options

@remorses
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants