From f7c26bf2bf453d475a3f7e9ceeaf7e9c225ce535 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Fri, 9 Mar 2018 12:41:02 -0800 Subject: [PATCH] Add some docs for config searching. --- packages/babel-core/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/babel-core/README.md b/packages/babel-core/README.md index 6499ad881c..8a08cf2d94 100644 --- a/packages/babel-core/README.md +++ b/packages/babel-core/README.md @@ -216,7 +216,9 @@ Following is a table of the options you can use: | `ast` | `false` | Include the AST in the returned object | | `auxiliaryCommentAfter` | `null` | Attach a comment after all non-user injected code | | `auxiliaryCommentBefore` | `null` | Attach a comment before all non-user injected code | -| `babelrc` | `true` | Specify whether or not to use .babelrc and .babelignore files. Not available when using the CLI, [use `--no-babelrc` instead](https://babeljs.io/docs/usage/cli/#babel-ignoring-babelrc) | +| `root` | `"."` | Specify the "root" folder that defines the location to search for "babel.config.js", and the default folder to allow `.babelrc` files inside of.| +| `configFile` | `undefined` | The config file to load Babel's config from. Defaults to searching for "babel.config.js" inside the "root" folder. `false` will disable searching for config files.| +| `babelrc` | `(root)` | Specify whether or not to use .babelrc and .babelignore files. Not available when using the CLI, [use `--no-babelrc` instead](https://babeljs.io/docs/usage/cli/#babel-ignoring-babelrc). `false` to disable searching, and `true` to always search, a string path of the package to search inside of, or an array of paths to packages to search inside of. | | `envName` | env vars | Defaults to environment variable `BABEL_ENV` if set, or else `NODE_ENV` if set, or else it defaults to `"development"` | | `code` | `true` | Enable code generation | | `comments` | `true` | Output comments in generated output |