b579a35e83
* rename example with-styled-components to with-styled-components-babel * update with-styled-components references * update docs on react hydratation erros for styled components * clone with-styled-components-babel without babel config * add styledComponents to compiler options in next.config * replace babel dependency with Next.js SWC compiler * upgrade example typescript version example with-typescript-styled-components had a typescript dependency lower than the recommended version. Upgraded from 4.2.4 to 4.5.5. * Apply suggestions from code review * update readme for with-styled-components-babel remove Notes section since it describes a workaround which is no longer required to work with `next/link`. Co-authored-by: Lee Robinson <me@leerob.io> Co-authored-by: Balázs Orbán <info@balazsorban.com>
10 lines
166 B
JavaScript
10 lines
166 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
compiler: {
|
|
styledComponents: true,
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|