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
Hey @mo36924! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
babel.config.json
Configuration
Current and expected behavior
Expected:
or
Received:
Environment
OS: macOS 14.4.1
Node: 20.11.1 - ~/.proto/shims/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.18.2/bin/yarn
npm: 10.2.4 - ~/.proto/shims/npm
bun: 1.0.29 - ~/.proto/shims/bun
@babel/plugin-transform-react-constant-elements: ^7.24.1 => 7.24.1
@babel/preset-typescript: ^7.24.1 => 7.24.1
Possible solution
babel/packages/babel-plugin-transform-react-constant-elements/src/index.ts
Lines 245 to 250 in e779cad
Although the entire fragment cannot be made constant, the transformation of child elements works fine using the code below.
Additional context
No response
The text was updated successfully, but these errors were encountered: