preset-react and react-constant-elements produce invalid code with dynamic import #12237
Closed
1 task
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
I would work on a fix but unfortunately I have no experience with the Babel repository.
Current behavior
Babel produces invalid code that looks like this:
EDIT: Got it reproduced in the REPL aswell now, here is the link.
Here is a GitHub-Repository with a minimal example: https://github.com/leodr/babel-constant-elements-bug
Input Code
Expected behavior
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
The text was updated successfully, but these errors were encountered: