Skip to content
Merged
Show file tree
Hide file tree
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
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"
}
}
}
24 changes: 24 additions & 0 deletions patches/playwright-core@1.59.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/lib/server/utils/nodePlatform.js b/lib/server/utils/nodePlatform.js
index 80d88fedf2c4d2b7bea8cfd4b9c8db454dedaa1d..670f37ff62fd984361b7cfac62e54064a416139d 100644
--- a/lib/server/utils/nodePlatform.js
+++ b/lib/server/utils/nodePlatform.js
@@ -64,7 +64,18 @@ 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. The __dirname fallback computes the same playwright-core
+// root structurally (this file lives at playwright-core/lib/server/utils/).
+// Upstream: https://github.com/oven-sh/bun/pull/29066
+let coreDir;
+try {
+ coreDir = import_path.default.dirname(require.resolve("../../../package.json"));
+} catch (e) {
+ if (e.code !== 'MODULE_NOT_FOUND') throw e;
+ coreDir = import_path.default.resolve(__dirname, "../../..");
+}
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