-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[pigment-css][nextjs-plugin] Fix alias resolver #41494
Conversation
Netlify deploy previewhttps://deploy-preview-41494--material-ui.netlify.app/ Bundle size report |
114daab
to
1750e44
Compare
Uses webpack's internal resolver to resolve aliased paths during WyW's evaluation phase.
1750e44
to
8a8e9ce
Compare
return result; | ||
} | ||
// Use Webpack's resolver to resolve actual path but | ||
// ignore next.js files during evaluation phase of WyW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR but it seems like we can ignore the emotion
as well for the .toString
error, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me check if it fixes emotion related issue but I am sure these two are unrelated. Maybe we can point that emotion import to a dummy file similar to what we do for next/image
/next/font
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tested, it works!
Resolve React and other related libraries to the actual ones in node_modules instead of Next.js' own version of React that will also include RSC related code that is not actually needed during WyW eval.
Resolve React and other related libraries to the actual ones in node_modules instead of Next.js' own version of React that will also include RSC related code that is not actually needed during WyW eval.
Resolve React and other related libraries to the actual ones in node_modules instead of Next.js' own version of React that will also include RSC related code that is not actually needed during WyW eval.
Signed-off-by: Brijesh Bittu <[email protected]> Co-authored-by: Siriwat K <[email protected]>
Uses webpack's internal resolver to resolve aliased paths during WyW's evaluation phase.
This allows WyW to resolve aliased paths (through tsconfig) in Next.js to their actual paths.
Closes #41482