feat(nextjs): next plugin and example#1045
Conversation
|
Hi @LeoTexx! |
|
|
||
| const nextConfig = withLinaria({ | ||
| reactStrictMode: true, | ||
| swcMinify: true, |
There was a problem hiding this comment.
this is more a question rather than a request for change but... how is this actually working internally?
if there isn't any .babelrc / babel.config.json then Next uses SWC instead of Babel. Furthermore, this example is enabling to minify using SWC instead of Terser. See Next.js Compiler
@LeoTexx is this example working with Babel (and just Next is internally opting out from any config in the monorepo) or is this example somehow magically working using next's SWC loader as opposed to babel-loader? if the former, we should make it explicit by adding a babel config.
This PR adds the nextjs plugin and an example using it