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

Support Turbopack #3

Open
oliviertassinari opened this issue Mar 18, 2024 · 2 comments
Open

Support Turbopack #3

oliviertassinari opened this issue Mar 18, 2024 · 2 comments

Comments

@oliviertassinari
Copy link

Describe the feature

Support https://github.com/vercel/turbo.

Motivation

Next.js might be migrating away from webpack. I'm creating this issue as a placeholder to have one place to talk about this. Turbopack is in beta, so it might be best to wait to see how this evolves to start looking at a solution.

@devongovett
Copy link
Owner

devongovett commented Mar 18, 2024

Do you know if Turbopack supports plugins? I thought I read something about running webpack plugins in it, but I couldn't find any docs. (Edit: found these docs - but looks like this plugin would need more features than they expose currently.) Otherwise, for this implementation to work we'd need to add Turbopack support upstream to unplugin.

Ideally since Turbopack is written in Rust it could integrate support for macros directly rather than needing this plugin. Parcel's macro implementation is extracted as a separate Rust crate that is built on top of SWC, and has no dependencies on any other Parcel stuff, so it should be pretty easy to integrate. In fact, this unplugin uses that crate as well. This would require convincing the Turbopack team to add support though.

cc. @padmaia @wbinnssmith from the Turbopack team who may know more.

@oliviertassinari
Copy link
Author

Ok, so cross linking to unjs/unplugin#302

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

No branches or pull requests

2 participants