Is there a way to provide the path to the .babelrc file to babel-cli? Something like:
babel src --out-dir lib --config random-folder/sub-folder/.babelrc
Is there a way to provide the path to the .babelrc file to babel-cli? Something like:
babel src --out-dir lib --config random-folder/sub-folder/.babelrc
Considering the version you are using you may try extends
or babelrc
http://henryzoo.com/babel.github.io/docs/usage/options/
You can put the .babelrc file in a shared parent directory of the other 5 modules as the lookup behavior of babel regarding the .babelrc is:
Babel will look for a .babelrc in the current directory of the file being transpiled. If one does not exist, it will travel up the directory tree until it finds either a .babelrc, or a package.json with a "babel": {} hash within.