Skip to content

Revert "feat: 💄 Wrap dsfr css imports in a dsfr layer" #409

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

Merged

Conversation

kaaloo
Copy link
Contributor

@kaaloo kaaloo commented May 13, 2025

I would like to revert this PR because my tests have not been conclusive. Indeed, it appears that support of native CSS features such as

@import url("...") layer(layerName)

is only slated for webpack 6 which hasn't been released yet. I tried enabling these new features in the latest webpack version 5.99.8 using the experimental.css: true webpack config setting but this caused major breakage of our UI.

Reverts #400

@garronej garronej merged commit 90d5eb0 into codegouvfr:main May 13, 2025
6 checks passed
@garronej
Copy link
Collaborator

Hello @kaaloo,

Thank you for taking the time to come back and reverse this.

Keep in mind, for future contribution that you can start by using patch-package to test in your usecase before contributing the patch upstream.

@kaaloo
Copy link
Contributor Author

kaaloo commented May 14, 2025

Hello @kaaloo,

Thank you for taking the time to come back and reverse this.

Keep in mind, for future contribution that you can start by using patch-package to test in your usecase before contributing the patch upstream.

Yes my excuses, I will definitely be more careful next time! 😊

@garronej
Copy link
Collaborator

No issue at all

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

Successfully merging this pull request may close these issues.

2 participants