Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 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,11 @@ TypeScript is enabled by default. Make sure you have a `tsconfig.json` file at t
"presets": [["react-app", { "flow": false, "typescript": true }]]
}
```

## Absolute Runtime Paths
By default, `babel-preset-react-app` will make `@babel/runtime` imports to use absolute file system paths. To avoid that and use `node_modules/` relative paths set off the `absoluteRuntime` option on `.babelrc`:
Comment thread
iddan marked this conversation as resolved.
Outdated

```
{
"presets": [["react-app", { "absoluteRuntime": false }]]
}
Comment thread
iddan marked this conversation as resolved.