Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Next.js 12 support, update tests #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hippotastic
Copy link
Contributor

Next.js 12 requires another set of changes in order to keep this plugin working. Just like I did with Next.js 11 support, I added the necessary code to make it work again, and updated/added test cases to cover the new logic.

In order to make Next.js 12 actually use the Babel loader instead of its new default SWC loader, it may be required to add an empty .babelrc file to your Next.js root directory. I added a check and an error message for this scenario, too, so that users of this plugin will know what to do if Next.js isn't using Babel at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants