-
Notifications
You must be signed in to change notification settings - Fork 17.8k
bump nextjs to 15.5 and turbopack for development mode #24346
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
Conversation
The |
The plugin author is actively following up on this issue, and I believe it will be resolved soon. 😊 |
@hjlarry @crazywoola Since our middleware logic could be handled by Nginx, replacing middleware with Nginx would let us adopt Turbopack right away and improve DX. Could this be a practical workaround worth considering? |
Thank you for the detailed research and proposal. Since I’m not very familiar with the frontend ecosystem, I consulted AI about using Nginx to replace the middleware. It seems that integrating our current nonce-based CSP strategy in Nginx might be challenging? If this approach can enhance our DX without compromising our security policies, I believe it will gain approval from our community. |
I came up with a possible approach: filtering out Turbopack loader’s handling of middleware. Since Turbopack doesn’t yet provide a way to define rules like |
Yeah, it looks like the issue is caused by the plugin injecting code in the wrong place. This kind of pattern would indeed throw an error in React. |
@hjlarry All the known issues have been resolved, so we can give Turbopack speed another try 🤔 . |
let me see, its due to the compatibility issue with the mdx loader, we can first ignore it and then try it. |
A truly remarkable PR, thank you so much! |
@17hz The problem about |
@zh-lx 👍 works perfectly, a nice update. |
LGTM |
I will merge it later after the 1.9.0. |
) Co-authored-by: crazywoola <[email protected]> Co-authored-by: 非法操作 <[email protected]>
Any url missing? @crazywoola |
Summary
close #19179
close #20696
close #23304
Now, try to upgrade nextjs to
15.5.2
, and enable turbopack for development mode. I tested it myself and found that the development compilation speed is at least improved by 70% ⚡, with a good DX experience.And now the
code-inspector-plugin
is also working as expected. According to the latest version1.2.6
documentationScreenshots
Checklist
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods