Skip to content

Commit 3ae343f

Browse files
authoredJul 6, 2022
Fix/update docs for swc styled components (#38280)
According to #30802 SWC transforms for `styled-components` were updated with support for `cssProp`, `fileName` and `namespace`. The docs only mention support for `ssr` and `displayName`. ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint`
1 parent b83107c commit 3ae343f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/advanced-features/compiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070
}
7171
```
7272
73-
Currently, only the `ssr` and `displayName` transforms have been implemented. These two transforms are the main requirement for using `styled-components` in Next.js.
73+
`minify`, `transpileTemplateLiterals` and `pure` are not yet implemented. You can follow the progress [here](https://github.com/vercel/next.js/issues/30802). `ssr` and `displayName` transforms are the main requirement for using `styled-components` in Next.js.
7474
7575
### Jest
7676

0 commit comments

Comments
 (0)
Please sign in to comment.