Skip to content
New issue

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

Remove babel from build toolchain #3901

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Remove babel from build toolchain #3901

wants to merge 2 commits into from

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
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.

None yet

1 participant