Skip to content
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

fix(turbopack): Fix CSS Modules class name for lightningcss mode #7718

Merged
merged 5 commits into from
Mar 13, 2024

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Mar 13, 2024

Description

lightningcss enforces the class name to end with [local].

See: https://lightningcss.dev/css-modules.html#css-grid

Testing Instructions

I'll add a test soon.

Closes PACK-2731

Copy link

vercel bot commented Mar 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 7:22am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 7:22am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:22am

Copy link
Contributor

github-actions bot commented Mar 13, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Mar 13, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)
  • Turbopack Rust benchmark tests (linux)

See workflow summary for details

@sokra sokra merged commit 20eabe8 into main Mar 13, 2024
46 of 50 checks passed
@sokra sokra deleted the kdy1/lcss-classname branch March 13, 2024 08:52
kdy1 added a commit to vercel/next.js that referenced this pull request Mar 13, 2024
# Turbopack

* vercel/turborepo#7719 <!-- Tobias Koppers - accept
css files outside of the project as virtual assets -->
* vercel/turborepo#7661 <!-- Tobias Koppers - more
efficient node.js process startup -->
* vercel/turborepo#7720 <!-- Tobias Koppers -
generate correct async module handling for side effects optimization -->
* vercel/turborepo#7718 <!-- Donny/강동윤 -
fix(turbopack): Fix CSS Modules class name for lightningcss mode -->

### What?

Update tests to make CSS Modules of `lightningcss` work with CSS grids.

### Why?

`lightningcss` enforces the class name to end with `[local]`.

See: https://lightningcss.dev/css-modules.html#css-grid


### How?

Closes PACK-2731
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…cel/turborepo#7718)

### Description

`lightningcss` enforces the class name to end with `[local]`.

See: https://lightningcss.dev/css-modules.html#css-grid

### Testing Instructions

I'll add a test soon.

Closes PACK-2731
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…cel/turborepo#7718)

### Description

`lightningcss` enforces the class name to end with `[local]`.

See: https://lightningcss.dev/css-modules.html#css-grid

### Testing Instructions

I'll add a test soon.

Closes PACK-2731
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…cel/turborepo#7718)

### Description

`lightningcss` enforces the class name to end with `[local]`.

See: https://lightningcss.dev/css-modules.html#css-grid

### Testing Instructions

I'll add a test soon.

Closes PACK-2731
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…cel/turborepo#7718)

### Description

`lightningcss` enforces the class name to end with `[local]`.

See: https://lightningcss.dev/css-modules.html#css-grid

### Testing Instructions

I'll add a test soon.

Closes PACK-2731
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