I have a modified react-scripts that includes this babel plugin and because of it by build fails, with the reason explained here.
You can find my version of create-react-app/react-scriptshere - it changes the default folder from src to frontend & sets up this babel plugin.
Exact build output:
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/babel-plugin-graphql-js-client-transform/lib/index.js:34
Read more here: http://bit.ly/2tRViJ9
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have a modified
react-scripts
that includes this babel plugin and because of it by build fails, with the reason explained here.You can find my version of
create-react-app/react-scripts
here - it changes the default folder fromsrc
tofrontend
& sets up this babel plugin.Exact build output:
Also, please note that the storefront-api-examples/react-graphql-client fails to build as well because the babel plugin is missing for the production webpack config.