kmagiera / babel-watch

Reload your babel-node app on JS source file changes. And do it fast.
MIT License
528 stars 70 forks source link

Add config file option #124

Closed puchm closed 3 years ago

puchm commented 3 years ago

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 the configFile 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?

STRML commented 3 years ago

Thanks!

aonamrata commented 3 years ago

Hi, Do you know when this will be releases as a version? I want to update to latest babel-watch but need this param as well. thanks.

STRML commented 3 years ago

Released in 7.5.0