Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions esbuild/private/plugins/bazel-sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ async function resolveInExecroot(build, importPath, otherOptions) {
return result
}

// External modules are intentionally outside the bundle and don't need path validation
if (result.external) {
if (!!process.env.JS_BINARY__LOG_DEBUG) {
console.error(
`DEBUG: [bazel-sandbox] skipping sandbox validation for external module: ${result.path}`
)
}
return result
}

if (
!result.path.startsWith('.') &&
!result.path.startsWith('/') &&
Expand Down