Skip to content

Remove babel from build toolchain#3901

Closed
wch wants to merge 2 commits intomainfrom
rm-babel
Closed

Remove babel from build toolchain#3901
wch wants to merge 2 commits intomainfrom
rm-babel

Conversation

@wch
Copy link
Collaborator

@wch wch commented Sep 22, 2023

I'm making this PR for discussion. Currently we use Babel so that we can generate ES5 code. I found that the generated ES5 code makes it harder to debug the code (even when using options(shiny.minified=F)) because async code gets transformed into something quite different from the original.

Modern browsers don't need to be stuck with ES5 anymore, so in this PR I removed Babel and changed the complication target to ES2020.

The one significant issue I can see with this change is that it will probably cause shiny to not work on PhantomJS, which will cause shinytest to stop working. (That's why this is a draft PR.)

@wch wch requested a review from schloerke September 22, 2023 20:12
@cpsievert
Copy link
Collaborator

cpsievert commented Jun 16, 2025

@wch seems this PR is now obsolete thanks to #4066?

Closing since it seems like it is, but please reopen if I'm missing something

@cpsievert cpsievert closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants