Skip to content

fix(css-modules): Do not transform the container name in CSS Modules#835

Merged
devongovett merged 6 commits intoparcel-bundler:masterfrom
kdy1:container
Nov 3, 2024
Merged

fix(css-modules): Do not transform the container name in CSS Modules#835
devongovett merged 6 commits intoparcel-bundler:masterfrom
kdy1:container

Conversation

@kdy1
Copy link
Contributor

@kdy1 kdy1 commented Oct 15, 2024

Related: vercel/next.js#71233

Webpack css-loader does not transpile @container

@devongovett
Copy link
Member

Hashing container names is intentional. I think webpack just never updated to support newer css features. Do the options added in #739 help here, or do we need to add a new one?

@kdy1
Copy link
Contributor Author

kdy1 commented Oct 16, 2024

I added an option instead 👍

@devongovett
Copy link
Member

I think this should already be covered by the custom_idents option, but I guess we can have a more granular option like animation too.

@devongovett devongovett merged commit c24fe64 into parcel-bundler:master Nov 3, 2024
kdy1 added a commit to vercel/next.js that referenced this pull request Nov 15, 2024
…2607)

### What?

Disable CSS Modules renaming for containers.

### Why?

We should match the behavior of webpack mode.

See: parcel-bundler/lightningcss#835

### How?

 - Closes PACK-3315
 - Closes #71233
wyattjoh pushed a commit to vercel/next.js that referenced this pull request Nov 28, 2024
…2607)

### What?

Disable CSS Modules renaming for containers.

### Why?

We should match the behavior of webpack mode.

See: parcel-bundler/lightningcss#835

### How?

 - Closes PACK-3315
 - Closes #71233
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