Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
],
"patchedDependencies": {
"@earendil-works/pi-coding-agent": "patches/@earendil-works__pi-coding-agent.patch",
"@earendil-works/pi-tui": "patches/@earendil-works__pi-tui.patch"
"@earendil-works/pi-tui": "patches/@earendil-works__pi-tui.patch",
"playwright-core@1.59.1": "patches/playwright-core@1.59.1.patch"
}
}
}
21 changes: 21 additions & 0 deletions patches/playwright-core@1.59.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/lib/server/utils/nodePlatform.js b/lib/server/utils/nodePlatform.js
index 80d88fedf2c4d2b7bea8cfd4b9c8db454dedaa1d..ca0a8d6aa6ac9f66e2a18e2970cb3be12b02c6f7 100644
--- a/lib/server/utils/nodePlatform.js
+++ b/lib/server/utils/nodePlatform.js
@@ -64,7 +64,15 @@ let boxedStackPrefixes = [];
function setBoxedStackPrefixes(prefixes) {
boxedStackPrefixes = prefixes;
}
-const coreDir = import_path.default.dirname(require.resolve("../../../package.json"));
+// Wrapped in try-catch for Bun compiled binaries: require.resolve() with
+// relative paths gets converted to absolute build-machine paths that don't
+// exist at runtime. coreDir is only used for stack-trace filtering so an
+// empty fallback is safe.
+// Upstream: https://github.com/microsoft/playwright/issues/XXXXX (TODO: file)
Comment thread
kamilcast marked this conversation as resolved.
Resolved
+let coreDir = "";
+try {
+ coreDir = import_path.default.dirname(require.resolve("../../../package.json"));
+} catch {}
Comment thread
kamilcast marked this conversation as resolved.
Resolved
const nodePlatform = {
name: "node",
boxedStackPrefixes: () => {
7 changes: 5 additions & 2 deletions pnpm-lock.yaml

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

Loading