Skip to content

Commit

Permalink
Turbopack: enable some node.js builtin in edge runtime (vercel#58850)
Browse files Browse the repository at this point in the history
### What?

Edge runtime allow additional node.js builtins

see vercel/turborepo#6562


Closes PACK-2031

---------

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
  • Loading branch information
sokra and timneutkens authored Nov 26, 2023
1 parent 12a683b commit 9f69766
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 42 deletions.
66 changes: 33 additions & 33 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 @@ -43,11 +43,11 @@ next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-tran
testing = { version = "0.35.10" }

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

# General Deps

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ pub async fn get_edge_resolve_options_context(
enable_typescript: true,
enable_react: true,
enable_mjs_extension: true,
enable_edge_node_externals: true,
rules: vec![(
foreign_code_context_condition(next_config, project_path).await?,
resolve_options_context.clone().cell(),
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"@types/ws": "8.2.0",
"@vercel/ncc": "0.34.0",
"@vercel/nft": "0.22.6",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231124.2",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231126.2",
"acorn": "8.5.0",
"amphtml-validator": "1.0.35",
"anser": "1.4.9",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

0 comments on commit 9f69766

Please # to comment.