unplugin icon indicating copy to clipboard operation
unplugin copied to clipboard

Feature: Next.js compatibility

Open hyf0 opened this issue 4 years ago • 1 comments

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.

hyf0 avatar Nov 14 '21 07:11 hyf0

/cc @pi0 do you think we should have this?

antfu avatar Nov 14 '21 07:11 antfu

@hyf0 What exactly is needed to make a webpack plugin work with next? Aren't all webpack plugins nextjs compatible?

ecstrema avatar Mar 11 '23 05:03 ecstrema

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

smeubank avatar Apr 05 '23 11:04 smeubank

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.

antfu avatar Apr 05 '23 14:04 antfu