Skip to content

Commit

Permalink
Include absoluteRuntime in babel preset docs (#5847)
Browse files Browse the repository at this point in the history
  • Loading branch information
iddan committed Apr 4, 2020
1 parent 56d34c0 commit c7352c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/babel-preset-react-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,12 @@ Make sure you have a `tsconfig.json` file at the root directory. You can also us
"presets": [["react-app", { "flow": false, "typescript": true }]]
}
```

## Absolute Runtime Paths
Absolute paths are enabled by default for imports. To use relative paths instead, set the `absoluteRuntime` option in `.babelrc` to `false`:

```
{
"presets": [["react-app", { "absoluteRuntime": false }]]
}
```

0 comments on commit c7352c7

Please sign in to comment.