next-plugin-custom-babel-config
next-plugin-custom-babel-config copied to clipboard
Not working with Next.js 12
Version 1.0.5 of this plugin does not support Next.js 12 because of two changes:
- Next.js 12 uses a nested webpack configuration where the
config.module.rulesno longer directly contains the loader rules, but an object with aoneOfarray property that contains them. These nested loaders are not found by version 1.0.5. - Next.js 12 uses its new SWC loader by default instead of Babel, causing this plugin to not find any Babel loaders to configure.
I've created PR #10 to fix these issues and increased the version number to 1.0.6.