Skip to content

Commit

Permalink
Turbopack: Vc<T> and Turbo Engine type system improvements (#51792)
Browse files Browse the repository at this point in the history
This is the Next.js side of vercel/turbo#4587, which makes changes to Turbo Engine to allow expressing value cells as `Vc<Type>` instead of `TypeVc`, leveraging the type system to bring a slew of other improvements to writing Turbo Engine code.

## Turbopack updates

* vercel/turbo#4587
  • Loading branch information
alexkirsz committed Jul 16, 2023
1 parent 7ce663e commit 5964b28
Show file tree
Hide file tree
Showing 127 changed files with 4,329 additions and 4,242 deletions.
71 changes: 36 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 @@ -44,11 +44,11 @@ swc_core = { version = "0.79.13" }
testing = { version = "0.33.20" }

# Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.3" }
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230716.2" }
# [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-230713.3" }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230716.2" }
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230713.3" }
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230716.2" }

# General Deps

Expand Down
4 changes: 3 additions & 1 deletion packages/next-swc/crates/core/tests/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use next_swc::{
next_dynamic::next_dynamic,
next_ssg::next_ssg,
react_server_components::server_components,
server_actions::{self, server_actions},
server_actions::{
server_actions, {self},
},
};
use next_transform_font::{next_font_loaders, Config as FontLoaderConfig};
use turbopack_binding::swc::{
Expand Down
4 changes: 3 additions & 1 deletion packages/next-swc/crates/core/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use next_swc::{
react_remove_properties::remove_properties,
react_server_components::server_components,
remove_console::remove_console,
server_actions::{self, server_actions},
server_actions::{
server_actions, {self},
},
shake_exports::{shake_exports, Config as ShakeExportsConfig},
};
use next_transform_font::{next_font_loaders, Config as FontLoaderConfig};
Expand Down

0 comments on commit 5964b28

Please sign in to comment.