The current version of next-layout-loader requires babel-plugin-codegen & babel-plugin-preval, leading to Next.js opting out of optimisations available from swc.
Ideally, there would be a way to perform code generation in an swc plugin, but I don't know how to do that.
All help is appreciated!
The current version of
next-layout-loaderrequiresbabel-plugin-codegen&babel-plugin-preval, leading to Next.js opting out of optimisations available fromswc.Ideally, there would be a way to perform code generation in an
swcplugin, but I don't know how to do that.All help is appreciated!