Skip to content

Commit bd8ab09

Browse files
authored
Turbopack: fix hiding node_modules warnings in error overlay. (#54022)
This regressed in vercel/turborepo#5661 when `context` was renamed `file_path`.
1 parent b4d5ddb commit bd8ab09

File tree

5 files changed

+52
-52
lines changed

5 files changed

+52
-52
lines changed

Cargo.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ swc_core = { version = "0.79.55" }
4646
testing = { version = "0.33.21" }
4747

4848
# Turbo crates
49-
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230811.2" }
49+
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230814.2" }
5050
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
51-
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230811.2" }
51+
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230814.2" }
5252
# [TODO]: need to refactor embed_directory! macro usage in next-core
53-
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230811.2" }
53+
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230814.2" }
5454

5555
# General Deps
5656

packages/next-swc/crates/next-core/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230811.2",
14-
"@vercel/turbopack-node": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-node/js?turbopack-230811.2",
13+
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-230814.2",
14+
"@vercel/turbopack-node": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-node/js?turbopack-230814.2",
1515
"anser": "^2.1.1",
1616
"css.escape": "^1.5.1",
1717
"next": "*",

packages/next-swc/crates/next-core/js/src/overlay/internal/container/Errors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function isWarning(issue: Issue) {
147147
}
148148

149149
function isUserCode(issue: Issue) {
150-
return !issue.context || !issue.context.includes('node_modules')
150+
return !issue.file_path || !issue.file_path.includes('node_modules')
151151
}
152152

153153
function isRuntimeWarning(error: ReadyRuntimeError) {

0 commit comments

Comments
 (0)