Skip to content

Commit

Permalink
build: Update turbopack (#63229)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
kdy1 authored Mar 13, 2024
1 parent 23759ef commit 3e6720c
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 57 deletions.
70 changes: 35 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ swc_core = { version = "0.90.17", features = [
testing = { version = "0.35.20" }

# Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240312.5" }
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240313.3" }
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240312.5" }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240313.3" }
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240312.5" }
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240313.3" }

# General Deps

Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"@types/ws": "8.2.0",
"@vercel/ncc": "0.34.0",
"@vercel/nft": "0.26.4",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240312.5",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240313.3",
"acorn": "8.5.0",
"amphtml-validator": "1.0.35",
"anser": "1.4.9",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describeVariants.each(['turbo'])('experimental-lightningcss', () => {
expect($('p').text()).toBe('hello world')
// swc_css does not include `-module` in the class name, while lightningcss does.
expect($('p').attr('class')).toBe(
'search-keyword blue__style-module__hlQ3RG'
'search-keyword style-module__hlQ3RG__blue'
)
})
})
Expand Down
Loading

0 comments on commit 3e6720c

Please sign in to comment.