Feature: Next.js compatibility
In fact, after supporting webpack, there is a little work to do to let unplugin support nextjs.
Writing these glue codes is indeed tedious, So could we just make it in unplugin, I'm very happy to make PR for this.
By the way, unplugin is amazing. The DX of writing Webpack plugin is horrible, but with unplugin the pain is disappeared.
/cc @pi0 do you think we should have this?
@hyf0 What exactly is needed to make a webpack plugin work with next? Aren't all webpack plugins nextjs compatible?
Has it already been discussed about turbopack? Anything missing to add support there?
As far as I know webpack support should cover NextJS as is
I think at this point, directly supporting meta-frameworks is out-of-scope of unplugin. We are focusing on build tools that have similar scopes.
For turbopack I think the problem is that it doesn't support a flexible enough plugin system that can fix the feature parity of unplugin. We will keep an eye on it but I think it might not happen very soon.