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

Feature: Next.js compatibility #43

Closed
hyf0 opened this issue Nov 14, 2021 · 4 comments
Closed

Feature: Next.js compatibility #43

hyf0 opened this issue Nov 14, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed pr welcome

Comments

@hyf0
Copy link

hyf0 commented Nov 14, 2021

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.

@antfu
Copy link
Member

antfu commented Nov 14, 2021

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

@antfu antfu added enhancement New feature or request help wanted Extra attention is needed pr welcome labels Oct 18, 2022
@ecstrema
Copy link

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

@smeubank
Copy link
Contributor

smeubank commented Apr 5, 2023

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

@antfu
Copy link
Member

antfu commented Apr 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed pr welcome
Projects
None yet
Development

No branches or pull requests

4 participants