Skip to content

Commit 7433dfe

Browse files
authored
fixup
1 parent afe402b commit 7433dfe

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • apps/website/docs/learn/environment-setup

apps/website/docs/learn/environment-setup/02-next.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ Babel is not the default compiler when using Next.js App Router, but it can stil
2020
const dev = process.env.NODE_ENV !== 'production'
2121

2222
const config = {
23+
parserOpts: {
24+
plugins: ['typescript', 'jsx'],
25+
},
2326
presets: [
24-
[
25-
"next/dist/compiled/babel/preset-typescript",
26-
{
27-
allowNamespaces: true,
28-
},
29-
],
3027
[
3128
'react-strict-dom/babel-preset',
3229
{
@@ -76,6 +73,12 @@ const config = {
7673
export default config;
7774
```
7875

76+
If necessary, run
77+
78+
```
79+
npm install --dev autoprefixer
80+
```
81+
7982
## Next.js configuration
8083

8184
Create or edit the `next.config.js` file as follows. Note that below you will find config for both turbopack or webpack.

0 commit comments

Comments
 (0)