Skip to content

Commit

Permalink
Docs: Fix invalid tsconfig importSource syntax (#42465)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanjc committed Nov 4, 2022
1 parent 428624f commit ef73798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-features/compiler.md
Expand Up @@ -198,14 +198,14 @@ First, update to the latest version of Next.js: `npm install next@latest`. Then,

### importSource

Next.js will automatically detect `jsxImportSource` in `jsconfig.json` or `tsconfig.json` and apply that. This is commonly used with libraries like Theme UI.
Next.js will automatically detect `jsxImportSource` in `jsconfig.json` or `tsconfig.json` and apply that. This is commonly used with libraries like [Theme UI](https://theme-ui.com).

First, update to the latest version of Next.js: `npm install next@latest`. Then, update your `jsconfig.json` or `tsconfig.json` file:

```js
{
"compilerOptions": {
"jsxImportSource": 'preact'
"jsxImportSource": "theme-ui"
}
}
```
Expand Down

0 comments on commit ef73798

Please sign in to comment.