You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in graphql-toolkit) only provide targets for ES2018, meaning it has to be transpiled for production builds. Unfortunately this package uses for 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?
$ craco build
Creating an optimized production build...
Failed to compile.
Transform failed with 1 error:
static/js/main.e96e6071.js:12466:16: ERROR: Transforming for-await loops to the configured target environment ("es2015") is not supported yet
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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