next-plugin-custom-babel-config icon indicating copy to clipboard operation
next-plugin-custom-babel-config copied to clipboard

Not working with Next.js 12

Open hippotastic opened this issue 2 years ago • 0 comments

Version 1.0.5 of this plugin does not support Next.js 12 because of two changes:

  1. Next.js 12 uses a nested webpack configuration where the config.module.rules no longer directly contains the loader rules, but an object with a oneOf array property that contains them. These nested loaders are not found by version 1.0.5.
  2. 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.

hippotastic avatar Mar 09 '22 16:03 hippotastic