Skip to content

Commit

Permalink
docs: Examples for cwd (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
jDeppen authored and fatfisz committed Dec 22, 2017
1 parent fdf5da9 commit bc9fa3a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,25 @@ An array of extensions that will be stripped from file paths. Defaults to the `e

By default, the working directory is the one used for the resolver, but you can override it for your project.
* The custom value `babelrc` will make the plugin look for the closest babelrc configuration based on the file to parse.
```json
{
"plugins": [
["module-resolver", {
"cwd": "babelrc"
}]
]
}
```
* The custom value `packagejson` will make the plugin look for the closest `package.json` based on the file to parse.
```json
{
"plugins": [
["module-resolver", {
"cwd": "packagejson"
}]
]
}
```

## transformFunctions

Expand Down

0 comments on commit bc9fa3a

Please sign in to comment.