Skip to content

Commit c7352c7

Browse files
authored
Include absoluteRuntime in babel preset docs (#5847)
1 parent 56d34c0 commit c7352c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/babel-preset-react-app/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ Make sure you have a `tsconfig.json` file at the root directory. You can also us
5151
"presets": [["react-app", { "flow": false, "typescript": true }]]
5252
}
5353
```
54+
55+
## Absolute Runtime Paths
56+
Absolute paths are enabled by default for imports. To use relative paths instead, set the `absoluteRuntime` option in `.babelrc` to `false`:
57+
58+
```
59+
{
60+
"presets": [["react-app", { "absoluteRuntime": false }]]
61+
}
62+
```

0 commit comments

Comments
 (0)