dotansimha / dotansimha/graphql-code-generator

Using recommended react-app preset for code splitting brings in undesired transform-exponentiation-operator babel transformation

Open
#9,747 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### Which packages are impacted by your issue?

@graphql-codegen/client-preset

### Describe the bug

Using recommended react-app preset for code splitting brings in undesired transform-exponentiation-operator babel transformation

The only change we made in our webpack config was adding `react-app` preset as recommended, but this caused `**` to be converted to `Math.pow`

### Your Example Website or App

xx

### Steps to Reproduce the Bug or Issue

xx

### Expected behavior

xx

### Screenshots or Videos

_No response_

### Platform

- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
- `graphql` version: [e.g. 16.3.0]
- `@graphql-codegen/*` version(s): [e.g. 2.6.2]

### Codegen Config File

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.