How to ignore babel config file in root #7365
-
Hi, I would like to know if it's possible to ignore the babel config file in root? My use case: create small apps in a yarn workspace in the Uppy monorepo and write e2e tests against them. We have a babel config in our root, which we need for other reasons, but parcel automatically picks it up from the root even if I run it as a workspace ( The parcel build will fail with the auto detected babel config file so I need to ignore that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I used the documentation here that explains how to ignore Babel so that Parcel 2 uses its own transpiler: https://parceljs.org/languages/javascript/#usage-with-other-tools In short, you have to add a
(In config-default |
Beta Was this translation helpful? Give feedback.
I used the documentation here that explains how to ignore Babel so that Parcel 2 uses its own transpiler:
https://parceljs.org/languages/javascript/#usage-with-other-tools
In short, you have to add a
.parcelrc
to your project root that excludes the usual@parcel/transformer-babel
from the transformers list:(In config-default
@parcel/transformer-babel
normally appears at the top of that transformers list, so the override above ensures that Parcel excludes the Babel transformer and will not process your B…