-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile code with Macros while using Babel plugins. #9945
Comments
|
Yes, and as noted Babel compiles the backend just fine. The same config file, same workspace, but different behavior in Parcel. |
I would need a reproduction in order to debug this further for you. |
This issue got me stuck for hours. I guess maybe I have something set up wrong. I gave up and ended up just hacking it. I ditched @parcel/transformer-babel comes with This is the patch: Now it works. |
🐛 bug report
Using:
Fails if I have any custom Babel configurations defined. I'm enabling a few plugins.
I get the following error:
I can't seem to figure out how to define the option listed there, I've tried:
Which does nothing, and:
Which produces an error that that isn't a valid option.
If I use the configuration example from the Parcel Macro docs under the Babel section:
Paracel complains a bunch about using redundant Babel stuff:
The code compiles, but produces nonsensical runtime errors indicating that the bundle is in some way invalid.
Am I missing something, or is this a bug?
🎛 Configuration (.babelrc, package.json, cli command)
babel.config.json:
I'm using this same config to build my backend code directly with Babel, it it has no issue with the import attributes and doesn't complain about the above config.
The text was updated successfully, but these errors were encountered: