From c7352c7277b35f70023fc365e78d0cd457049258 Mon Sep 17 00:00:00 2001 From: Iddan Aaronsohn Date: Sun, 5 Apr 2020 02:32:24 +0300 Subject: [PATCH] Include absoluteRuntime in babel preset docs (#5847) --- packages/babel-preset-react-app/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/babel-preset-react-app/README.md b/packages/babel-preset-react-app/README.md index 3470ea0a6f3..86393774f08 100644 --- a/packages/babel-preset-react-app/README.md +++ b/packages/babel-preset-react-app/README.md @@ -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 }]] +} +```