I added the config file option which is an optional relative path to the .babelrc file. This can be useful if you have a monorepo and want to import files from outside of a specific package in that repo.
E.g. you might have multiple packages as well as a common folder at root level. If you don't specify the configFile option, babel wouldn't use the normal .babelrc since the file is not within the scope of said .babelrc.
Hi,
I added the config file option which is an optional relative path to the
.babelrc
file. This can be useful if you have a monorepo and want to import files from outside of a specific package in that repo.E.g. you might have multiple packages as well as a
common
folder at root level. If you don't specify theconfigFile
option, babel wouldn't use the normal.babelrc
since the file is not within the scope of said.babelrc
.The option just gets passed to babel.
What do you think about this?