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
Built-In Next.js CSS Support #56
Comments
hello there 👋 I knew a little bit about CSS support in Next.js (🎉), but I may be missing some information. The thing would be that if an external package has some modules that import CSS files (like |
From the Next.js Team's perspective, Global CSS ( We could allow |
See vercel/next.js#10031 and vercel/next.js#10032. |
Ohw ok, it's a bit different than what I thought.
|
Let me write the documentation for the new support, which should clarify a lot! |
I added better unit tests and end-to-end tests, this should be much easier to implement now. Will have a look tomorrow :) |
|
Added in #58 The code is ugly (it was a bit tricky to isolate the Webpack rules for CSS), and I will need to be careful about future breaking changes in the Webpack config of future Next.js releases. Maybe @Timer you can confirm me this is supported the way you wanted? I may have missed some edgecases.
|
Ok, let's assume it is the correct implementation, if you see issues or unexpected results, please open a separate issue @Timer |
Is your feature request related to a problem? Please describe.
It'd be nice if this package was updated for Next.js' new built-in CSS support.
Describe the solution you'd like
This plugin should enable the use of CSS Modules for a "transpiled module".
Describe alternatives you've considered
N/A
Additional context
This is a new feature of Next.js being released in a few days. You can find it on the latest canary (and you can import
xxx.module.css
).The text was updated successfully, but these errors were encountered: