Incompatibility with ESBuild / es6 #2525
Unanswered
amccarthy1
asked this question in
Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I'm trying to integrate GraphiQL into our app which uses esbuild. Per the README, it looks like the intent is to target ES6, but at least one dependency (
@n1ru4l/push-pull-async-iterable-iterator
, which is used ingraphql-toolkit
) only provide targets for ES2018, meaning it has to be transpiled for production builds. Unfortunately this package usesfor await
loops, which ESBuild can't transpile to anything but es2018.This is clearly a limitation with esbuild (webpack + babel handle it just fine), but I'm curious if anyone has had any success getting graphiql to compile using esbuild targeting es2016?
Thanks in advance!
Here's a minimal failing example: https://github.com/amccarthy1/graphiql-bug-example ; in this example
craco start
works, butcraco build
fails:Beta Was this translation helpful? Give feedback.
All reactions